Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create translation of Chinese simplified(简体中文) #8

Open
wants to merge 8 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,12 @@ export default defineComponent({
"title": "Записи погоды и данные климата",
"description": "База данных погоды и климата с детальными записями погоды тысяч метеорологических станций всего мира."
}
},
"zh": {
"$meta": {
"title": "我们记录天气",
"description": "天气和气候数据库,为全球数千个气象站和地点提供详细的天气数据。"
}
}
}
</i18n>
</i18n>
14 changes: 13 additions & 1 deletion src/components/Footer.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
}
</i18n>
</i18n>
5 changes: 4 additions & 1 deletion src/components/alerts/Interpolation.vue
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,9 @@ export default defineComponent({
},
"ru": {
"$interpolationAlert": "Интерполированные данные, основанные на данных близлежащих метеостанций ({stations})."
},
"zh": {
"$interpolationAlert": "该数据根据附近气象站({stations})插值得到。"
}
}
</i18n>
</i18n>
5 changes: 4 additions & 1 deletion src/components/panels/Nearby.vue
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,9 @@ export default {
},
"ru": {
"nearbyStations": "Близлежащие станции"
},
"zh": {
"nearbyStations": "附近站点"
}
}
</i18n>
</i18n>
65 changes: 65 additions & 0 deletions src/i18n/translations/zh.json
Original file line number Diff line number Diff line change
@@ -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": "天气状况代码"
}
}
10 changes: 9 additions & 1 deletion src/views/NotFound.vue
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,14 @@ export default defineComponent({
},
"error": "Error",
"$description": "Мы не смогли найти эту страницу."
},
"zh": {
"$meta": {
"title": "页面不存在",
"description": "抱歉,我们找不到这个页面。"
},
"error": "错误",
"$description": "找不到此页面。"
}
}
</i18n>
</i18n>
18 changes: 17 additions & 1 deletion src/views/Patrons.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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。"
}
}
</i18n>
</i18n>
7 changes: 6 additions & 1 deletion src/views/Place.vue
Original file line number Diff line number Diff line change
Expand Up @@ -183,6 +183,11 @@ export default defineComponent({
"$meta": {
"description": "Исторические данные о погоде и климате для {name} ({country}) с информацией о температуре, осадках и многом другом."
}
},
"zh": {
"$meta": {
"description": "{name} ({country}) 的历史天气与气候数据。包括温度,湿度以及更多信息。"
}
}
}
</i18n>
</i18n>