- Notifications
You must be signed in to change notification settings - Fork5
⚙️ Client forhttps://lokalise.co. Easy way to fetch your translations.
ibitcy/lokalise-client
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
Easy way to fetch your translations from lokalise.co.
Based on officialnode-lokalise-api.
npm i lokalise-client --save-dev
or
yarn add lokalise-client --dev
Createconfig directory in root of your project.
Adddefault.json inconfig directory. Basic example:
{"translations": {"dist":"./src/locale/","token":"%token%","projects": [ {"id":"%project_id%" } ] }}Instead ofjson you can useother file format.
You can define several projects. Also you can extend project params byofficial lokalise api.
In yourpackage.json file add command"fetch-translations": "translations fetch".
Run commandnpm run fetch-translations.
If you want to save translations files with some prefix, addprefix param.
If you want to clean directory with translations each time, setclean param totrue.
If you want to save your translations as flat object, setuseFlat totrue and definedelimiter param.
If you want to save declaration file for your translations, definedeclaration param:
"declaration": {"dist":"src/models"}
About
⚙️ Client forhttps://lokalise.co. Easy way to fetch your translations.
Topics
Resources
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Packages0
Uh oh!
There was an error while loading.Please reload this page.
Contributors3
Uh oh!
There was an error while loading.Please reload this page.