多国家语言的翻译,我们也遇到过,手动翻译太麻烦,索性就自己写了个翻译的工具。可以翻译文本文件、ios的.strings配置文件和android的xml配置文件。安装:pip install mkTranslation翻译:然后使用 translate 命令翻译即可:translate -p ./ios.strings -d 'pt' # 默认使用 google 翻译,翻译为葡萄牙语translate -p ./android.xml -d 'pt' # 默认使用 google 翻译,翻译为葡萄牙语translate -p ./test.txt -d 'ja' -c 'youdao' -s 'zh' #使用有道翻译为 日语code:https://github.com/mythkiven/...
多国家语言的翻译,我们也遇到过,手动翻译太麻烦,索性就自己写了个翻译的工具。可以翻译文本文件、ios的.strings配置文件和android的xml配置文件。
安装:pip install mkTranslation
翻译:然后使用 translate 命令翻译即可:
translate -p ./ios.strings -d 'pt' # 默认使用 google 翻译,翻译为葡萄牙语
translate -p ./android.xml -d 'pt' # 默认使用 google 翻译,翻译为葡萄牙语
translate -p ./test.txt -d 'ja' -c 'youdao' -s 'zh' #使用有道翻译为 日语
code:https://github.com/mythkiven/...