savloco
v1.0.3
Published
test translation package
Downloads
2
Readme
SAVloco
testing mode
Package for working with microsoft azure API and loclaise
Locolaise - Translation Management for Developers
Microsoft translator - Translation API
Installation
yarn add savloco
or
npm install savloco
Basic usage
- Create configuration script
savloco.json
that tells what files to upload and how to process downloaded translations. - Run
yarn savloco
or
npm run savloco
Typical example of savloco.json
{
"inputFile": "src/locals/input.json",
"localsDir": "src/locals"
"MICROSOFT_URL": "https://api.cognitive.microsofttranslator.com",
"MICROSOFT_KEY": "********************************",
"MICROSOFT_REGION": "global",
}
inputFile : file in which default words with format of { key: word }, where key is used in application code and word is a meaning of it
localsDir : directory where JSON files located of format of [code language].json (en.json, he.json). In that files is or will be a list of translation like in inputFile file, but with translated word.
Features
- [x] Auto translation
- [ ] Upload dictionary
- [ ] Download dictionary