summaryrefslogtreecommitdiffstats
path: root/python/l10n/fluent_migrations/bug_1860606_remove_migration_ftl.py
diff options
context:
space:
mode:
Diffstat (limited to 'python/l10n/fluent_migrations/bug_1860606_remove_migration_ftl.py')
-rw-r--r--python/l10n/fluent_migrations/bug_1860606_remove_migration_ftl.py27
1 files changed, 27 insertions, 0 deletions
diff --git a/python/l10n/fluent_migrations/bug_1860606_remove_migration_ftl.py b/python/l10n/fluent_migrations/bug_1860606_remove_migration_ftl.py
new file mode 100644
index 0000000000..3ad99a87b2
--- /dev/null
+++ b/python/l10n/fluent_migrations/bug_1860606_remove_migration_ftl.py
@@ -0,0 +1,27 @@
+# Any copyright is dedicated to the Public Domain.
+# http://creativecommons.org/publicdomain/zero/1.0/
+
+from fluent.migrate.helpers import transforms_from
+
+
+def migrate(ctx):
+ """Bug 1860606 - Get rid of migration.ftl in favour of migrationWizard.ftl, part {index}."""
+
+ source = "browser/browser/migration.ftl"
+ target = "browser/browser/migrationWizard.ftl"
+
+ ctx.add_transforms(
+ target,
+ target,
+ transforms_from(
+ """
+migration-source-name-ie = {COPY_PATTERN(from_path, "source-name-ie")}
+migration-source-name-edge = {COPY_PATTERN(from_path, "source-name-edge")}
+migration-source-name-chrome = {COPY_PATTERN(from_path, "source-name-chrome")}
+
+migration-imported-safari-reading-list = {COPY_PATTERN(from_path, "imported-safari-reading-list")}
+migration-imported-edge-reading-list = {COPY_PATTERN(from_path, "imported-edge-reading-list")}
+""",
+ from_path=source,
+ ),
+ )