lokalise_cmd 1.0.1 copy "lokalise_cmd: ^1.0.1" to clipboard
lokalise_cmd: ^1.0.1 copied to clipboard

A tool to download translation files from Lokalise and convert them to .json files.

lokalise_cmd #

pub package Build Status codecov

A tool to download translation bundles from Lokalise and convert them to .arb files.

Currently, it supports following commands:

download command

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 #

  1. Thanks flutter_lokalise
0
likes
90
pub points
0%
popularity

Publisher

unverified uploader

A tool to download translation files from Lokalise and convert them to .json files.

Repository (GitHub)
View/report issues

Documentation

API reference

License

Apache-2.0 (LICENSE)

Dependencies

archive, args, freezed_annotation, http, json_annotation, logging, meta, path, quiver, yaml

More

Packages that depend on lokalise_cmd