summaryrefslogtreecommitdiffstats
path: root/python/l10n/fluent_migrations/bug_1868154_RFPHelper.py
blob: e0e0345ab07c8ed68a648ab5e9ebe518c281bafb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# Any copyright is dedicated to the Public Domain.
# http://creativecommons.org/publicdomain/zero/1.0/

import fluent.syntax.ast as FTL
from fluent.migrate.transforms import COPY


def migrate(ctx):
    """Bug 1868154 - Convert RFPHelper strings to Fluent, part {index}."""

    source = "browser/chrome/browser/browser.properties"
    target = "toolkit/toolkit/global/resistFingerPrinting.ftl"
    ctx.add_transforms(
        target,
        target,
        [
            FTL.Message(
                id=FTL.Identifier("privacy-spoof-english"),
                value=COPY(source, "privacy.spoof_english"),
            ),
        ],
    )