CLI will find i18n keys in you source code which are used by your library and push them to the cloud, where you will be able to translate keys and publish to the CDN and download in desired format.
For example to translate frontend application in ReactJS you can use yahoo/react-intl which looks like follows:
<FormattedMessage id="LOGIN"/> //i18n key = "LOGIN"
thanks to our command line tool will find key
LOGIN and push it the SimpleLocalize cloud, where you will be able to:
translate this key to multiple languages [see video],
invite teammates to help you with translations,
publish changes to the CDN,
and finally fetch translated data directly to your application.
This solutions works great with yahoo/react-intl beacause you can publish changes to deployed application and see new translations immediately!
Create new project: https://app.simplelocalize.io
Select project type which determine translations output format.
Go to project settings and in section Project Credentials, download configuration properties.
uploadToken: <PROJECT_UPLOAD_TOKEN>projectType: <SEE_SUPPORTED_LIBRARIES_LIST>
To find proper value for
projectType property, go to CLI supported libraries page.
Type in terminal or in bash file following command:
$ curl -s https://get.simplelocalize.io | bash
Done, now you can refresh the project page and see what new keys we have.
See short video about SimpleLocalize cloud editor. [10 seconds]