Skip to content

Commit 12d71f6

Browse files
author
coolbyte
committed
修改说明
1 parent 26abbd9 commit 12d71f6

File tree

2 files changed

+25
-0
lines changed

2 files changed

+25
-0
lines changed

LICENSE

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,3 +19,4 @@ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
1919
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
2020
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
2121
SOFTWARE.
22+

README.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,26 @@
11
# I18nResourceTranslator
22
translation for vue project using vue-i18n,.json files translation are also supported.为VUE项目使用vue-i18n国际化多语言文件支持翻译功能,JSON文件也支持翻译。
3+
<br>
4+
using google translator free API,thanks google.
5+
<br>
6+
usage
7+
`I18nResourceTranslator -f <lang_code> -t <lang_code> -sp <source_filepath>`
8+
<br>
9+
show helps
10+
`I18nResourceTranslator -h`
11+
<br>
12+
example
13+
`I18nResourceTranslator -f zh-CN -t fr -sp ./cn.json`
14+
15+
cn.json file like this
16+
`{
17+
"bind_account": {
18+
"bind_account": "绑定账号",
19+
"Account": "账号",
20+
"account_tip": "请输入"
21+
}
22+
}`
23+
<br>
24+
理论上只要是JSON文件都可以翻译
25+
<br>
26+
after translation completed, translation file will be at the program's directory.if there's error while translating,you should try again.

0 commit comments

Comments
 (0)