{"id":18118086,"url":"https://github.com/mozilla/fluent-migrate","last_synced_at":"2025-06-24T04:32:25.698Z","repository":{"id":165882173,"uuid":"641265625","full_name":"mozilla/fluent-migrate","owner":"mozilla","description":"Toolchain for migrating translations to Fluent","archived":false,"fork":false,"pushed_at":"2025-01-29T08:53:43.000Z","size":378,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-06-17T00:32:32.994Z","etag":null,"topics":["fluent","l10n","localization"],"latest_commit_sha":null,"homepage":"https://pypi.org/project/fluent.migrate","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mozilla.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2023-05-16T05:54:54.000Z","updated_at":"2025-01-29T08:53:47.000Z","dependencies_parsed_at":"2024-01-29T18:47:11.772Z","dependency_job_id":"ba4f88e6-966f-42bf-92fa-ce819b9b4c4c","html_url":"https://github.com/mozilla/fluent-migrate","commit_stats":{"total_commits":215,"total_committers":10,"mean_commits":21.5,"dds":0.5627906976744186,"last_synced_commit":"e0183e892dd3c5478ad30e6b5857cb847770276c"},"previous_names":[],"tags_count":11,"template":false,"template_full_name":null,"purl":"pkg:github/mozilla/fluent-migrate","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mozilla%2Ffluent-migrate","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mozilla%2Ffluent-migrate/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mozilla%2Ffluent-migrate/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mozilla%2Ffluent-migrate/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mozilla","download_url":"https://codeload.github.com/mozilla/fluent-migrate/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mozilla%2Ffluent-migrate/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261112053,"owners_count":23111303,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["fluent","l10n","localization"],"created_at":"2024-11-01T05:08:33.705Z","updated_at":"2025-06-24T04:32:25.679Z","avatar_url":"https://github.com/mozilla.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"Fluent Migration Tools\n======================\n\nProgrammatically create Fluent files from existing content in both legacy\nand Fluent formats. Use recipes written in Python to migrate content for each\nof your localizations.\n\n`migrate-l10n` is a CLI script which uses the `fluent.migrate` module under\nthe hood to run migrations on existing translations.\n\n`validate-l10n-recipe` is a CLI script to test a migration recipe for common\nerrors, without trying to apply it.\n\nInstallation\n------------\n\nInstall from PyPI:\n\n    pip install fluent.migrate[hg]\n\nIf you only want to use the `MigrationContext` API, you can drop the\nrequirement on `python-hglib`:\n\n    pip install fluent.migrate\n\nUsage\n-----\n\nMigrations consist of _recipes_, which are applied to a _localization repository_, based on _template files_.\nYou can find recipes for Firefox in `mozilla-central/python/l10n/fluent_migrations/`,\nthe reference repository is [gecko-strings](https://hg.mozilla.org/l10n/gecko-strings/) or _quarantine_.\nYou apply those migrations to l10n repositories in [l10n-central](https://hg.mozilla.org/l10n-central/), or to `gecko-strings` for testing.\n\nThe migrations are run as python modules, so you need to have their file location in `PYTHONPATH`.\n\nAn example would look like\n\n    $ migrate-l10n --lang it --reference-dir gecko-strings --localization-dir l10n-central/it bug_1451992_preferences_sitedata bug_1451992_preferences_translation\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmozilla%2Ffluent-migrate","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmozilla%2Ffluent-migrate","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmozilla%2Ffluent-migrate/lists"}