1.0.3 • Published 2 years ago

savloco v1.0.3

Weekly downloads
-
License
ISC
Repository
-
Last release
2 years ago

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

  1. Create configuration script savloco.json that tells what files to upload and how to process downloaded translations.
  2. 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

  • Auto translation
  • Upload dictionary
  • Download dictionary