From a0efa0cb1fb4d4dc89c5c92e2e398ad27545c5b3 Mon Sep 17 00:00:00 2001 From: William Song <2560814258@qq.com> Date: Wed, 16 Mar 2022 18:30:18 +0800 Subject: [PATCH 1/8] Create zh.json --- src/i18n/translations/zh.json | 65 +++++++++++++++++++++++++++++++++++ 1 file changed, 65 insertions(+) create mode 100644 src/i18n/translations/zh.json diff --git a/src/i18n/translations/zh.json b/src/i18n/translations/zh.json new file mode 100644 index 0000000..40aae45 --- /dev/null +++ b/src/i18n/translations/zh.json @@ -0,0 +1,65 @@ +{ + "locale": "zh", + "dateFormat": "yyyy/MM/dd", + "dateTimeFormat": "yyyy/MM/dd HH:mm:ss", + + "home": "首页", + "blog": "博客", + "patrons": "资助者", + "donation": "捐赠", + "settings": "设置", + "history": "历史", + "climate": "气候", + "maps": "地图", + "export": "导出", + "save": "保存", + "close": "关闭", + "details": "细节", + "updated": "更新于", + "support": "支持", + "documentation": "文档", + "help": "帮助", + + "avg": "平均", + "min": "最小", + "max": "最大", + "total": "总", + + "$phrases": { + "noData": "暂无数据", + "someDataMissing": "存在缺失的数据", + "showMore": "显示更多" + }, + + "$meteo": { + "weather": "天气", + "air": "大气", + "pres": "压强", + "temp": "气温", + "humidity": "湿度", + "prcp": "降水量", + "sunshine": "日照", + "snow": "降雪", + "wind": "风", + "gust": "阵风" + }, + + "$params": { + "time": "时间", + "date": "日期", + "temp": "气温", + "tavg": "平均气温", + "tmin": "最低温度", + "tmax": "最高温度", + "dwpt": "露点", + "rhum": "相对湿度", + "prcp": "总降水量", + "snow": "雪深", + "wdir": "风向", + "wspd": "风速", + "wpgt": "最大阵风", + "pres": "气压", + "tsun": "日照时长", + "coco": "天气状况代码" + } +} From bc02bd667830991b739e78041ede84d1128bfcce Mon Sep 17 00:00:00 2001 From: William Song <2560814258@qq.com> Date: Thu, 17 Mar 2022 17:09:28 +0800 Subject: [PATCH 2/8] Update Interpolation.vue --- src/components/alerts/Interpolation.vue | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/components/alerts/Interpolation.vue b/src/components/alerts/Interpolation.vue index 23d3b07..7c7507f 100644 --- a/src/components/alerts/Interpolation.vue +++ b/src/components/alerts/Interpolation.vue @@ -80,6 +80,9 @@ export default defineComponent({ }, "ru": { "$interpolationAlert": "Интерполированные данные, основанные на данных близлежащих метеостанций ({stations})." + }, + "zh": { + "$interpolationAlert": "该数据根据附近气象站({stations})插值得到。" } } - \ No newline at end of file + From 2df0a0e5fc145a19cf509110c5b8dacfe8b74396 Mon Sep 17 00:00:00 2001 From: William Song <2560814258@qq.com> Date: Thu, 17 Mar 2022 17:17:27 +0800 Subject: [PATCH 3/8] Update Footer.vue --- src/components/Footer.vue | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/src/components/Footer.vue b/src/components/Footer.vue index 3371714..2ac9626 100644 --- a/src/components/Footer.vue +++ b/src/components/Footer.vue @@ -351,6 +351,18 @@ footer ul a > i { "$sources": "Погодные данные предоставлены {noaa}, {dwd} и {ec}. Узнайте больше о наших {sources}.", "$legalLink": "/en/legal", "$privacyLink": "/en/privacy" + }, + "zh": { + "aboutMeteostat": "关于 Meteostat", + "developers": "开发者", + "language": "语言", + "legalDisclosure": "法律", + "privacy": "隐私", + "sources": "数据来源", + "$legal": "Copyright © Meteostat. {legal} & {privacy}。", + "$sources": "天气数据由 {noaa}, {dwd} 和 {ec} 提供。 了解更多关于我们的 {sources}.", + "$legalLink": "/en/legal", + "$privacyLink": "/en/privacy" } } - \ No newline at end of file + From 412c7346f19a896b7b9b6921204075e74241609b Mon Sep 17 00:00:00 2001 From: William Song <2560814258@qq.com> Date: Thu, 17 Mar 2022 17:18:08 +0800 Subject: [PATCH 4/8] Update Nearby.vue --- src/components/panels/Nearby.vue | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/components/panels/Nearby.vue b/src/components/panels/Nearby.vue index 731143b..77c9db0 100644 --- a/src/components/panels/Nearby.vue +++ b/src/components/panels/Nearby.vue @@ -77,6 +77,9 @@ export default { }, "ru": { "nearbyStations": "Близлежащие станции" + }, + "zh": { + "nearbyStations": "附近站点" } } - \ No newline at end of file + From 1f57e215a09cb269edfdd82eb264d8886e8769ea Mon Sep 17 00:00:00 2001 From: William Song <2560814258@qq.com> Date: Thu, 17 Mar 2022 17:22:07 +0800 Subject: [PATCH 5/8] Update NotFound.vue --- src/views/NotFound.vue | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/views/NotFound.vue b/src/views/NotFound.vue index 2a31b35..4cfc7ec 100644 --- a/src/views/NotFound.vue +++ b/src/views/NotFound.vue @@ -111,6 +111,14 @@ export default defineComponent({ }, "error": "Error", "$description": "Мы не смогли найти эту страницу." + }, + "zh": { + "$meta": { + "title": "页面不存在", + "description": "抱歉,我们找不到这个页面。" + }, + "error": "错误", + "$description": "找不到此页面。" } } - \ No newline at end of file + From 8923cdb2383703aae3262e99cf9b2fb457625b29 Mon Sep 17 00:00:00 2001 From: William Song <2560814258@qq.com> Date: Sun, 27 Mar 2022 11:24:04 +0800 Subject: [PATCH 6/8] Update Patrons.vue --- src/views/Patrons.vue | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/src/views/Patrons.vue b/src/views/Patrons.vue index 352fcdd..d697420 100644 --- a/src/views/Patrons.vue +++ b/src/views/Patrons.vue @@ -479,6 +479,22 @@ export default defineComponent({ "contributors": "Вкладчики", "$contributorsText": "Талантливые разработчики и соавторы, которые создают Meteostat и его интерфейсы", "$contributorsAction": "Если вы знакомы с кодированием, зайдите на {github} и помогите нам создать Meteostat." + }, + zh": { + "$meta": { + "title": "资助者", + "description": "了解谁在支持 Meteostat" + }, + "meetChristian": "了解 Christian。", + "$quote": "运行开源项目可能具有挑战性。 你总是缺乏各种资源——尤其是时间和金钱。 正是我们对天气和气候的热情让我们不断前进。 Meteostat 之所以成为可能,是因为我们有数十名慷慨的支持者和贡献者一直支持该项目。 感谢大家!", + "$cTitle": "建立者 & 维护者", + "sponsorsAndPartners": "资助者 & 合作伙伴", + "these": "这些", + "$backersText": "我们在 {service} 上极好的资助者。", + "$backersAction": "成为 {patreon} 或 {github} 上的资助者。 或者,您也可以使用{donation}选项设置定期承诺或一次性捐赠。", + "contributors": "贡献者", + "$contributorsText": "正在构建 Meteostat 及其接口的才华横溢的开发人员和贡献者。", + "$contributorsAction": "如果您熟悉编码,请前往 {github} 并帮助我们构建 Meteostat。" } } - \ No newline at end of file + From 58bb270a1af8886dd884a43e9476ecf84514dedf Mon Sep 17 00:00:00 2001 From: William Song <2560814258@qq.com> Date: Sun, 27 Mar 2022 11:25:51 +0800 Subject: [PATCH 7/8] Update App.vue --- src/App.vue | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/App.vue b/src/App.vue index bdd20c1..9827349 100644 --- a/src/App.vue +++ b/src/App.vue @@ -128,6 +128,12 @@ export default defineComponent({ "title": "Записи погоды и данные климата", "description": "База данных погоды и климата с детальными записями погоды тысяч метеорологических станций всего мира." } + }, + "zh": { + "$meta": { + "title": "我们记录天气", + "description": "天气和气候数据库,为全球数千个气象站和地点提供详细的天气数据。" + } } } - \ No newline at end of file + From c1ca0a33bfafe6546cd17ce1053a3d072f46656a Mon Sep 17 00:00:00 2001 From: William Song <2560814258@qq.com> Date: Sun, 27 Mar 2022 11:28:45 +0800 Subject: [PATCH 8/8] Update Place.vue --- src/views/Place.vue | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/views/Place.vue b/src/views/Place.vue index 1dbbc95..61dbb04 100644 --- a/src/views/Place.vue +++ b/src/views/Place.vue @@ -183,6 +183,11 @@ export default defineComponent({ "$meta": { "description": "Исторические данные о погоде и климате для {name} ({country}) с информацией о температуре, осадках и многом другом." } + }, + "zh": { + "$meta": { + "description": "{name} ({country}) 的历史天气与气候数据。包括温度,湿度以及更多信息。" + } } } - \ No newline at end of file +