summaryrefslogtreecommitdiffstats
path: root/python/l10n/fluent_migrations/bug_1845727_mozSupportLink_to_toolkit.py
blob: 99c2c6858165f880cd9021dcf84aa5e6bc18365d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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,
        ),
    )