lokalise_cmd
A tool to download translation bundles from Lokalise and convert them to .arb files.
Currently, it supports following commands:
Usage
Add configuration to lokalise.yaml
:
lokalise_cmd:
project_id: YOUR_LOKALISE_PROJECT_ID
api_token: YOUR_LOKALISE_API_TOKEN
include_tags:
- tag1
- tag2
flutter_intl:
enabled: true
Run lokalise_cmd
:
flutter pub run lokalise_cmd \
[--working-directory <path>] \
[--api-token <token>] \
[--project-id <project_id>] \
<command>
You can also follow how to set up a global command to make it
available as a regular shell command by appending PATH
.
lokalise_cmd <command>>
or creating an alias instead:
alias lokalise_cmd="flutter pub run lokalise_cmd"
lokalise_cmd <command>>
download command
Downloads .arb translation files.
lokalise_cmd download \
[--output <path>] \
[--include-tags <tag1,tag2,...>]
For example:
lokalise_cmd download
Refer library
- Thanks flutter_lokalise
Libraries
- lokalise_cmd
- Currently, flutter_lokalise provides a command line tool only.