-
Notifications
You must be signed in to change notification settings - Fork 151
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#539 Add i18n function and Japanese resource to streamlit chime
* Add i18n function and Japanese resource to streamlit chime * Remove package names from requirements.txt * Fix default locale * Update some Japanese translations
- Loading branch information
1 parent
cbafcdd
commit 188c35b
Showing
13 changed files
with
478 additions
and
209 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
include src/penn_chime/locales/*.yml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,94 @@ | ||
en: | ||
app-new-admissions-title: "New Admissions" | ||
app-new-admissions-text: "Projected number of **daily** COVID-19 admissions." | ||
app-admitted-patients-title: "Admitted Patients (Census)" | ||
app-admitted-patients-text: "Projected **census** of COVID-19 patients, accounting for arrivals and discharges." | ||
app-SIR-title: "Susceptible, Infected, and Recovered" | ||
app-SIR-text: "The number of susceptible, infected, and recovered individuals in the hospital catchment region at any given moment" | ||
charts-date: "Date" | ||
charts-daily-admissions: "Daily admissions" | ||
charts-census: "Census" | ||
charts-count: "Count" | ||
presentation-infected-population-warning: "(Warning: The number of estimated infections is greater than the total regional population. Please verify the values entered in the sidebar.)" | ||
presentation-header: |+ | ||
<link rel="stylesheet" href="https://www1.pennmedicine.org/styles/shared/penn-medicine-header.css"> | ||
<div class="penn-medicine-header__content"> | ||
<a href="https://www.pennmedicine.org" class="penn-medicine-header__logo" | ||
title="Go to the Penn Medicine home page">Penn Medicine</a> | ||
<a id="title" class="penn-medicine-header__title">COVID-19 Hospital Impact Model for Epidemics (CHIME)</a> | ||
</div> | ||
presentation-notice: |+ | ||
**Notice**: *There is a high | ||
degree of uncertainty about the details of COVID-19 infection, transmission, and the effectiveness of social distancing | ||
measures. Long-term projections made using this simplified model of outbreak progression should be treated with extreme caution.* | ||
presentation-developed-by: |+ | ||
This tool was developed by [Predictive Healthcare](http://predictivehealthcare.pennmedicine.org/) at | ||
Penn Medicine to assist hospitals and public health officials with hospital capacity planning. | ||
Please read [How to Use CHIME]({docs_url}) to customize inputs for your region. | ||
presentation-estimated-number-of-infection: |+ | ||
The estimated number of currently infected individuals is **{total_infections:.0f}**. This is based on current inputs for | ||
Hospitalizations (**{current_hosp}**), Hospitalization rate (**{hosp_rate:.0%}**), Regional population (**{S}**), | ||
and Hospital market share (**{market_share:.0%}**). | ||
{infected_population_warning_str} | ||
An initial doubling time of **{doubling_time}** days and a recovery time of **{recovery_days}** days imply an $R_0$ of | ||
**{r_naught:.2f}** and daily growth rate of **{daily_growth:.2f}%**. | ||
{mitigation_str} | ||
presentation-mitigation-rt-less-then-1: |+ | ||
**Mitigation**: A **{relative_contact_rate:.0%}** reduction in social contact after the onset of the | ||
outbreak **halves the infections every {doubling_time_t:.1f}** days, implying an effective $R_t$ of **${r_t:.2f}$** | ||
and daily growth rate of **{daily_growth_t:.2f}%**. | ||
presentation-mitigation-rt-more-then-equal-1: |+ | ||
**Mitigation**: A **{relative_contact_rate:.0%}** reduction in social contact after the onset of the | ||
outbreak **reduces the doubling time to {doubling_time_t:.1f}** days, implying an effective $R_t$ of **${r_t:.2f}$** | ||
and daily growth rate of **{daily_growth_t:.2f}%**. | ||
presentation-current-hospitalized: "Currently hospitalized COVID-19 patients" | ||
presentation-n-days: "Number of days to project" | ||
presentation-doubling-time: "Doubling time in days (up to today)" | ||
presentation-current-date: "Current date (default is today)" | ||
presentation-date-first-hospitalized: "Date of first hospitalized case (enter this date to have CHIME estimate the initial doubling time)" | ||
presentation-mitigation-date: "Date of social distancing measures effect (may be delayed from implementation)" | ||
presentation-relative-contact-rate: "Social distancing (% reduction in social contact going forward)" | ||
presentation-hospitalized-rate: "Hospitalization %(total infections)" | ||
presentation-icu-rate: "ICU %(total infections)" | ||
presentation-ventilated-rate: "Ventilated %(total infections)" | ||
presentation-hospitalized-days: "Average hospital length of stay (in days)" | ||
presentation-icu-days: "Average days in ICU" | ||
presentation-ventilated-days: "Average days on ventilator" | ||
presentation-market-share: "Hospital market share (%)" | ||
presentation-population: "Regional population" | ||
presentation-infectious-days: "Infectious days" | ||
presentation-max-y-axis-set: "Set the Y-axis on graphs to a static value" | ||
presentation-max-y-axis: "Y-axis static value" | ||
presentation-hospital-parameters: "Hospital Parameters" | ||
presentation-spread-and-contact-parameters: "Spread and Contact Parameters" | ||
presentation-first-hospitalized-check: "I know the date of the first hospitalized case." | ||
presentation-social-distancing-implemented: "Social distancing measures have been implemented" | ||
presentation-severity-parameters: "Severity Parameters" | ||
presentation-display-parameters: "Display Parameters" | ||
presentation-subscribe: "Subscribe" | ||
presentation-enter-email: "Enter Email" | ||
presentation-enter-name: "Enter Name" | ||
presentation-enter-affiliation: "Enter Affiliation" | ||
presentation-submit: "Submit" | ||
presentation-references-acknowledgements: "References & Acknowledgements" | ||
presentation-references-acknowledgements-text: |+ | ||
* AHA Webinar, Feb 26, James Lawler, MD, an associate professor University of Nebraska Medical Center, What Healthcare Leaders Need To Know: Preparing for the COVID-19 | ||
* We would like to recognize the valuable assistance in consultation and review of model assumptions by Michael Z. Levy, PhD, Associate Professor of Epidemiology, Department of Biostatistics, Epidemiology and Informatics at the Perelman School of Medicine | ||
* Finally we'd like to thank [Code for Philly](https://codeforphilly.org/) and the many members of the open-source community that [contributed](https://github.com/CodeForPhilly/chime/graphs/contributors) to this project. | ||
presentation-copyright: "© 2020, The Trustees of the University of Pennsylvania" | ||
presentation-download: |+ | ||
<a download="{filename}" href="data:file/csv;base64,{csv}">Download {filename}</a> | ||
admits_hospitalized: "Hospitalized Admissions" | ||
admits_icu: "ICU Admissions" | ||
admits_ventilated: "Ventilated Admissions" | ||
census_hospitalized: "Hospitalized Census" | ||
census_icu: "ICU Census" | ||
census_ventilated: "Ventilated Census" | ||
susceptible: "Susceptible" | ||
infected: "Infected" | ||
recovered: "Recovered" | ||
day: "Day" | ||
date: "Date" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,92 @@ | ||
ja: | ||
app-new-admissions-title: "新規入院患者数" | ||
app-new-admissions-text: "**日毎の**COVID-19関連新規入院患者数予測" | ||
app-admitted-patients-title: "累計入院患者数" | ||
app-admitted-patients-text: "入院と退院を考慮したCOVID-19患者の予測**累計患者数**" | ||
app-SIR-title: "感受性保持者、感染者と回復者" | ||
app-SIR-text: "与えられた時間範囲での、病院の担当範囲領域における感受性保持者、感染者と回復者の人数" | ||
charts-date: "日付" | ||
charts-daily-admissions: "毎日の新規入院患者数" | ||
charts-census: "累計患者数" | ||
charts-count: "人数" | ||
presentation-infected-population-warning: "(警告:推定感染者数が地域の人口を上回っています。サイドバーに入力された値を確認してください。)" | ||
presentation-header: |+ | ||
<link rel="stylesheet" href="https://www1.pennmedicine.org/styles/shared/penn-medicine-header.css"> | ||
<div class="penn-medicine-header__content"> | ||
<a href="https://www.pennmedicine.org" class="penn-medicine-header__logo" | ||
title="Penn Medicineのホームページへ行く">Penn Medicine</a> | ||
<a id="title" class="penn-medicine-header__title">COVID-19における伝染病の病院影響モデル</a> | ||
</div> | ||
presentation-notice: |+ | ||
**重要**: COVID-19の感染、伝播、 | ||
社会的遠距離戦略の厳密な有効性については、まだ多くの不確実な点があります。 | ||
この簡略化されたアウトブレイク進行モデルを用いた長期予測は、細心の注意を払って取り扱ってください。 | ||
presentation-developed-by: |+ | ||
このツールはペンシルバニア州立大学の医療部門であるPenn Medicineの、[予測医療チーム](http://predictivehealthcare.pennmedicine.org/)によって、 | ||
病院や公衆衛生担当者の収容能力把握を支援するために開発されました。 | ||
地域の状況に応じたデータにカスタマイズするには、「[CHIMEの使い方]({docs_url})」をご覧ください。 | ||
presentation-estimated-number-of-infection: |+ | ||
現在の予測感染者人数は**{total_infections:.0f}**人です。 | ||
この結果は入院患者数(**{current_hosp}**)、患者の入院割合(**{hosp_rate:.0%}**)、地域の人口(**{S}**)および病院の患者シェア(**{market_share:.0%}**)を元に計算されています。 | ||
{infected_population_warning_str} | ||
初期倍加時間が**{doubling_time}**日で、回復までの時間が**{recovery_days}**日であれば、$R_0$は**{r_naught:.2f}**となり、 | ||
日々の増加率は**{daily_growth:.2f}%**となります。 | ||
{mitigation_str} | ||
presentation-mitigation-rt-less-then-1: |+ | ||
**緩和**: アウトブレイク発生後の社会的接触が**{relative_contact_rate:.0%}**減少すると、**感染の半減期は{doubling_time_t:.1f}**日となり、 | ||
実効$R_t$は**${r_t:.2f}$**、日々の増加率は**{daily_growth_t:.2f}%**となります。 | ||
presentation-mitigation-rt-more-then-equal-1: |+ | ||
**緩和**: アウトブレイク発生後の社会的接触が**{relative_contact_rate:.0%}**減少すると、**倍加時間は改善されて{doubling_time_t:.1f}**日となり、 | ||
実効$R_t$は**${r_t:.2f}$**、日々の増加率は**{daily_growth_t:.2f}%**となります。 | ||
presentation-current-hospitalized: "現在入院しているCOVID-19患者数" | ||
presentation-n-days: "予測する日数" | ||
presentation-doubling-time: "今日までの倍加時間 (日数)" | ||
presentation-current-date: "今の日付 (初期値は今日)" | ||
presentation-date-first-hospitalized: "最初の入院患者が発生した日付 (CHIMEが初期倍加時間を推定するために使います)" | ||
presentation-mitigation-date: "社会的距離戦略が効果を発揮し始めた日付 (おそらく実施日よりも遅れます)" | ||
presentation-relative-contact-rate: "社会的距離戦略 (今後の社会的接触の減少率 %)" | ||
presentation-hospitalized-rate: "入院患者率 %(総感染者数比)" | ||
presentation-icu-rate: "集中治療患者率 %(総感染者数比)" | ||
presentation-ventilated-rate: "人工呼吸患者率 %(総感染者数比)" | ||
presentation-hospitalized-days: "平均入院日数" | ||
presentation-icu-days: "平均集中治療日数" | ||
presentation-ventilated-days: "平均人工呼吸治療日数" | ||
presentation-market-share: "病院の患者シェア率 (%)" | ||
presentation-population: "地域の人口" | ||
presentation-infectious-days: "感染力を持つ期間 (日数)" | ||
presentation-max-y-axis-set: "グラフのY軸最大値を固定値にします" | ||
presentation-max-y-axis: "Y軸固定値" | ||
presentation-hospital-parameters: "病院パラメータ" | ||
presentation-spread-and-contact-parameters: "感染と接触のパラメータ" | ||
presentation-first-hospitalized-check: "最初の入院事例の日付が既知の場合" | ||
presentation-social-distancing-implemented: "社会的距離戦略が導入済みの場合" | ||
presentation-severity-parameters: "深刻度パラメータ" | ||
presentation-display-parameters: "表示パラメータ" | ||
presentation-subscribe: "購読" | ||
presentation-enter-email: "メールアドレス" | ||
presentation-enter-name: "名前" | ||
presentation-enter-affiliation: "所属" | ||
presentation-submit: "送信" | ||
presentation-references-acknowledgements: "参考資料と謝辞" | ||
presentation-references-acknowledgements-text: |+ | ||
* アメリカ病院協会(AHA)ウェビナー、2月26日、James Lawler医師 (ネブラスカ大学医療センター准教授)、「COVID-19への準備として、医療リーダーが知っておくべきこと」 | ||
* ペレルマン医科大学の生物統計学・疫学・疫学・情報学部門の疫学准教授であるMichael Z.Levy博士による、モデル仮説の検討とレビューにおける貴重な支援をここに特筆いたします。 | ||
* 最後に、[Code for Philly](https://codeforphilly.org/)と、このプロジェクトに[貢献](https://github.com/CodeForPhilly/chime/graphs/contributors)してくれたオープンソースコミュニティの多くのメンバーに感謝いたします。 | ||
presentation-copyright: "© 2020, The Trustees of the University of Pennsylvania" | ||
presentation-download: |+ | ||
<a download="{filename}" href="data:file/csv;base64,{csv}">{filename} をダウンロード</a> | ||
admits_hospitalized: "新規入院患者数" | ||
admits_icu: "新規集中治療患者数" | ||
admits_ventilated: "新規人工呼吸患者数" | ||
census_hospitalized: "累計入院患者数" | ||
census_icu: "累計集中治療患者数" | ||
census_ventilated: "累計人工呼吸患者数" | ||
susceptible: "感受性保持者数" | ||
infected: "感染者数" | ||
recovered: "回復者数" | ||
day: "日数" | ||
date: "日付" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.