-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
coolbyte
committed
Jun 18, 2022
1 parent
26abbd9
commit 12d71f6
Showing
2 changed files
with
25 additions
and
0 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 |
---|---|---|
@@ -1,2 +1,26 @@ | ||
# I18nResourceTranslator | ||
translation for vue project using vue-i18n,.json files translation are also supported.为VUE项目使用vue-i18n国际化多语言文件支持翻译功能,JSON文件也支持翻译。 | ||
<br> | ||
using google translator free API,thanks google. | ||
<br> | ||
usage | ||
`I18nResourceTranslator -f <lang_code> -t <lang_code> -sp <source_filepath>` | ||
<br> | ||
show helps | ||
`I18nResourceTranslator -h` | ||
<br> | ||
example | ||
`I18nResourceTranslator -f zh-CN -t fr -sp ./cn.json` | ||
|
||
cn.json file like this | ||
`{ | ||
"bind_account": { | ||
"bind_account": "绑定账号", | ||
"Account": "账号", | ||
"account_tip": "请输入" | ||
} | ||
}` | ||
<br> | ||
理论上只要是JSON文件都可以翻译 | ||
<br> | ||
after translation completed, translation file will be at the program's directory.if there's error while translating,you should try again. |