crm-i18n_crowdin_react
v1.0.3
Published
Original source: https://github.com/peregrinogris/i18n-crowdin
Downloads
13
Readme
i18n-crowdin
Original source: https://github.com/peregrinogris/i18n-crowdin
Add the following config in package.json
"i18n": {
"crowdin": {
"apiKey": "yourApiKey",
"project": "yourProjectName",
"marker": "i18n", // Optional
"files": "**/*jsx", // Optional
"destFolder": "." // Optional
}
}
The parameters marker, files and destFolder are optional, this example show the default values
npm run crowdin-upload
npm run crowdin-download
This generates i18n-$lang-$country.js files, for example i18n-pt-BR.js, i18n-en-US.js, etc
https://github.com/gurbieta/i18n-translator has a mini-lib to read this files and adds calls to i18n.tr and i18n.trn