-
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.
feat: 修改默认hash读取来源为defaults.json,防止导出的数据无法覆盖英文内容的问题
- Loading branch information
1 parent
797fcf9
commit 74d2936
Showing
9 changed files
with
81 additions
and
56 deletions.
There are no files selected for viewing
This file was deleted.
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 |
---|---|---|
@@ -1,8 +1,10 @@ | ||
# 在线国际化翻译小助手 | ||
|
||
该项目可以帮助我们对`react-intl`生成的国际化配置做辅助在线翻译的功能。 | ||
|
||
## 使用方法 | ||
1. 编译`react-intl`项目以便生成包含国际化`json`数据的`lang`目录 | ||
|
||
1. 编译`react-intl`项目以便生成包含国际化`json`数据的`lang`目录,要求生成一份最新翻译抽取出的`defaults.json`文件,其余的为各语言的 json 文件 | ||
2. 压缩`lang`目录,生成`lang.zip` | ||
3. 打开[https://turing-fe.github.io/translate-app/](https://turing-fe.github.io/translate-app/),点击下方`选择zip文件上传`按钮上传打包的zip文件 | ||
4. 在页面填写未翻译的空白项,完成后点击`导出`按钮下载zip包,解压缩后替换代码中的`lang`目录 | ||
3. 打开[https://turing-fe.github.io/translate-app/](https://turing-fe.github.io/translate-app/),点击下方`选择zip文件上传`按钮上传打包的 zip 文件 | ||
4. 在页面填写未翻译的空白项,完成后点击`导出`按钮下载 zip 包,解压缩后替换代码中的`lang`目录中的文件 |
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
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 +1 @@ | ||
export const EN_LANG = 'en-US' | ||
export const DEFAULT_LANG = 'defaults' |
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