flutter_i18n_locize 0.0.3

Flutter Android iOS

Easy integration locize.io to flutter_i18n. Contains methods to fetch translations and upload new translations.

flutter_i18n_locize #

Easy integration locize.io to flutter_i18n. Contains methods to fetch translations and upload new translations.

Pub Package GitHub Actions

Use cases #

Fetching translations #

Create config file .locize.yaml inside your root project folder and paste the next lines:

assetsPath: "./assets/flutter_i18n"
project:
  id: "..."      # change your project id
  namespaces:    # change your supported namespaces
    - "mobile"
  languages:     # change your supported languages
    - "en"
    - "ru"
  version: "latest"

Open your terminal and run next command:

flutter pub run flutter_i18n_locize fetch

Check that translations has been loaded to your assets.

Uploading new translations #

Create config file .locize.yaml inside your root project folder and paste the next lines:

assetsPath: "./assets/flutter_i18n"
project:
  id: "..."      # change your project id
  apiKey: "..."  # change your API key
  namespaces:    # change your supported namespaces
    - "mobile"
  languages:     # change your supported languages
    - "en"
    - "ru"
  version: "latest"

Add some translations to your assets. Open your terminal and run:

flutter pub run flutter_i18n_locize upload

Check that translations has been uploaded to locize.io.

Available commands #

CommandDescription
fetchDownloads translations from the locize.io to your asset folder.
uploadUploads translations to the locize.io from your asset folder.
1
likes
90
pub points
28%
popularity

Easy integration locize.io to flutter_i18n. Contains methods to fetch translations and upload new translations.

Repository (GitHub)
View/report issues

Documentation

API reference

Uploader

matrenin44@gmail.com

License

MIT (LICENSE)

Dependencies

dio, flutter, yaml

More

Packages that depend on flutter_i18n_locize