Skip to content

Commit

Permalink
修改说明
Browse files Browse the repository at this point in the history
  • Loading branch information
coolbyte committed Jun 18, 2022
1 parent 26abbd9 commit 12d71f6
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 0 deletions.
1 change: 1 addition & 0 deletions LICENSE
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,4 @@ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

24 changes: 24 additions & 0 deletions README.md
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.

0 comments on commit 12d71f6

Please sign in to comment.