Debian Codegraph @

python/l10n/fluent_migrations/bug_1921325_newtab-toast-thumbs-down_message.py

raw
1 # Any copyright is dedicated to the Public Domain.
2 # http://creativecommons.org/publicdomain/zero/1.0/
3
4 from fluent.migrate.helpers import transforms_from
5
6
7 def migrate(ctx):
8 """Bug 1921325 - Update structure of new tab toast notification message for moz-message-bar, part {index}."""
9
10 source = "browser/browser/newtab/newtab.ftl"
11 target = source
12
13 ctx.add_transforms(
14 target,
15 target,
16 transforms_from(
17 """
18 newtab-toast-thumbs-up-or-down2 =
19 .message = {COPY_PATTERN(from_path, "newtab-toast-thumbs-up-or-down")}
20 """,
21 from_path=source,
22 ),
23 )