summaryrefslogtreecommitdiffstats
path: root/python/l10n/fluent_migrations/bug_1845727_mozSupportLink_to_toolkit.py
diff options
context:
space:
mode:
Diffstat (limited to 'python/l10n/fluent_migrations/bug_1845727_mozSupportLink_to_toolkit.py')
-rw-r--r--python/l10n/fluent_migrations/bug_1845727_mozSupportLink_to_toolkit.py21
1 files changed, 21 insertions, 0 deletions
diff --git a/python/l10n/fluent_migrations/bug_1845727_mozSupportLink_to_toolkit.py b/python/l10n/fluent_migrations/bug_1845727_mozSupportLink_to_toolkit.py
new file mode 100644
index 0000000000..99c2c68581
--- /dev/null
+++ b/python/l10n/fluent_migrations/bug_1845727_mozSupportLink_to_toolkit.py
@@ -0,0 +1,21 @@
+# Any copyright is dedicated to the Public Domain.
+# http://creativecommons.org/publicdomain/zero/1.0/
+
+import fluent.syntax.ast as FTL
+from fluent.migrate.helpers import transforms_from
+
+
+def migrate(ctx):
+ """Bug 1845727 - move mozSupportLink l10n file to toolkit, part {index}."""
+ browser_ftl = "browser/browser/components/mozSupportLink.ftl"
+ toolkit_ftl = "toolkit/toolkit/global/mozSupportLink.ftl"
+ ctx.add_transforms(
+ toolkit_ftl,
+ toolkit_ftl,
+ transforms_from(
+ """
+moz-support-link-text = {COPY_PATTERN(from_path, "moz-support-link-text")}
+""",
+ from_path=browser_ftl,
+ ),
+ )