flutter_lokalise 0.1.1 flutter_lokalise: ^0.1.1 copied to clipboard
A tool to download translation files from Lokalise and convert them to .arb files.
flutter_lokalise #
A tool to download translation bundles from Lokalise and convert them
to .arb files.
Currently, it supports following commands:
Usage #
Add configuration to pubspec.yaml
:
dev_dependencies:
flutter_lokalise: any
flutter_lokalise:
project_id: YOUR_LOKALISE_PROJECT_ID
api_token: YOUR_LOKALISE_API_TOKEN
include_tags:
- tag1
- tag2
Run flutter_lokalise
:
flutter pub run flutter_lokalise \
[--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
.
flutter_lokalise <command>>
or creating an alias instead:
alias flutter_lokalise="flutter pub run flutter_lokalise"
flutter_lokalise <command>>
download command #
Downloads .arb translation files.
flutter_lokalise download \
[--output <path>] \
[--include-tags <tag1,tag2,...>]
For example:
flutter_lokalise download