1.0.4 • Published 1 year ago

fbt-sync v1.0.4

Weekly downloads
-
License
MIT
Repository
-
Last release
1 year ago

FBT sync

This library allows you to import native phrases (or your current translations) and deploy reviewed translations.

Get started with Swiftyper Translations

📦 Installing

# as a dev dependency (recommended)
$ npm install --save-dev fbt-sync

# as a global package
$ npm install --global fbt-sync

The installed binary is named fbt-sync. You can execute it directly in node_modules/.bin/fbt-sync or using npx (with or without installation) like npx fbt-sync.

🔧 Configuration

These steps are required:

  1. Register your FBT project on Swiftyper Translations

  2. Init project settings:

    $ ./node_modules/.bin/fbt-sync --init
    # or
    $ npx fbt-sync --init

Options

The CLI will not prompt for an API key if a value is provided in the environment variable SWIFTYPER_API_KEY or defined in .env file.

OptionDescription
--deployDeploy reviewed app translations
--upload-translationsUpload translations to swiftyper
--upload-phrasesUpload native phrases to swiftyper
--initConnect fbt project with swiftyper
--prettyPretty print output for translations file
--pathPath where to store translations e.g. ./src/

📜 License

The MIT License (MIT). Please see LICENSE for more information.