Skip to main content

Toolchain to migrate legacy translation to Fluent.

Project description

Fluent Migration Tools

Programmatically create Fluent files from existing content in both legacy and Fluent formats. Use recipes written in Python to migrate content for each of your localizations.

migrate-l10n is a CLI script which uses the fluent.migrate module under the hood to run migrations on existing translations.

validate-l10n-recipe is a CLI script to test a migration recipe for common errors, without trying to apply it.

Installation

Install from PyPI:

pip install fluent.migrate

Usage

Migrations consist of recipes, which are applied to a localization repository, based on template files. You can find recipes for Firefox in mozilla-central/python/l10n/fluent_migrations/, the reference repository is gecko-strings or quarantine. You apply those migrations to l10n repositories in l10n-central, or to gecko-strings for testing.

The migrations are run as python modules, so you need to have their file location in PYTHONPATH.

An example would look like

$ migrate-l10n --lang it --reference-dir gecko-strings --localization-dir l10n-central/it bug_1451992_preferences_sitedata bug_1451992_preferences_translation

Contact

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

fluent.migrate-0.7.0.tar.gz (21.4 kB view details)

Uploaded Source

Built Distribution

fluent.migrate-0.7.0-py2.py3-none-any.whl (26.5 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file fluent.migrate-0.7.0.tar.gz.

File metadata

  • Download URL: fluent.migrate-0.7.0.tar.gz
  • Upload date:
  • Size: 21.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.14.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.35.0 CPython/3.7.3

File hashes

Hashes for fluent.migrate-0.7.0.tar.gz
Algorithm Hash digest
SHA256 8f8ab00af1dacfaa6ea1a0bdd4d60a357749c6a392c7be3377669a4063806860
MD5 a2a7fcf2202c0a69050f3fed26f8037d
BLAKE2b-256 a7f735f691fece339307ec57230958bcdaf811d0a654824a506e3752162f4893

See more details on using hashes here.

Provenance

File details

Details for the file fluent.migrate-0.7.0-py2.py3-none-any.whl.

File metadata

  • Download URL: fluent.migrate-0.7.0-py2.py3-none-any.whl
  • Upload date:
  • Size: 26.5 kB
  • Tags: Python 2, Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.14.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.35.0 CPython/3.7.3

File hashes

Hashes for fluent.migrate-0.7.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 6fcb968a63d30519aeec74f35cc6ae6a6ac662c5e4d5c32ffab4aa5869b9dd68
MD5 6f33cc2a930722c56826491ea4a817e7
BLAKE2b-256 497bf4dec7a7c5bc39b8d8d55d352bb17fe0ec4afd92ff98689355c5025c5366

See more details on using hashes here.

Provenance

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page