sheets_i18n 0.0.1 copy "sheets_i18n: ^0.0.1" to clipboard
sheets_i18n: ^0.0.1 copied to clipboard

A flutter tool to synchronize i18n (internationalization) arb files with google sheets.

sheets_i18n #

A flutter tool to synchronize i18n (internationalization) arb files with google sheets.

Usage #

Prerequisites with intl_translation #

  1. Having setup intl_translation
  2. Having run the intl_translation commands to generate the arb files github.com/dart-lang/i18n

Install this package #

flutter pub add sheets_i18n

Configure the pubspec.yaml #

add this section:

sheets_i18n:
  service_account_path: ./service_account.json
  sheet_id: 34tv34rv324rv23rv3r43r43red89f8hs89duzfs

Run the script #

flutter pub run sheets_i18n:update

This will 2-way-sync all the changes:

  • message keys that are not present in the Google Sheet will be added
  • new translations will be pulled and written to the arb files

Run intl_translation's arb to dart #

Run the intl_translation commands to generate the dart code from the arb files github.com/dart-lang/i18n

4
likes
0
points
80
downloads

Publisher

verified publisherscalabs.de

Weekly Downloads

A flutter tool to synchronize i18n (internationalization) arb files with google sheets.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

gsheets, intl, intl_translation, yaml

More

Packages that depend on sheets_i18n