From 9498d1626e74cb4fe32ae76eb7d0f144aac02f5b Mon Sep 17 00:00:00 2001 From: Anthony Fu Date: Fri, 22 Jan 2021 18:38:16 +0800 Subject: [PATCH] chore: update messages --- locales/README.md | 6 +++--- locales/zh-CN.json | 6 +++++- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/locales/README.md b/locales/README.md index 26ce267..2a11e87 100644 --- a/locales/README.md +++ b/locales/README.md @@ -1,7 +1,7 @@ ## i18n -This directory is to serve your locale translation files. Modify them to the locales you want, you might need to update `src/messages.ts` as well. +This directory is to serve your locale translation files. JSON under this folder would be loaded automatically and register with their filenames as locale code. -For more details, check out [`vue-i18n`](https://github.com/intlify/vue-i18n-next). +Check out [`vue-i18n`](https://github.com/intlify/vue-i18n-next) for more details. -If you are using VS Code, [`i18n Ally`](https://github.com/antfu/i18n-ally) is recommended to make the better i18n experience. +If you are using VS Code, [`i18n Ally`](https://github.com/lokalise/i18n-ally) is recommended to make the i18n experience better. diff --git a/locales/zh-CN.json b/locales/zh-CN.json index 1fde0e2..a47d4c7 100644 --- a/locales/zh-CN.json +++ b/locales/zh-CN.json @@ -1,7 +1,11 @@ { "button": { + "about": "关于", "back": "返回", - "go": "确定" + "go": "确定", + "home": "首页", + "toggle_dark": "切换深色模式", + "toggle_langs": "切换语言" }, "intro": { "desc": "固执己见的 Vite 项目模板",