Closed Bug 2059104 Opened 2 months ago Closed 2 months ago

Automate locales update for train-hop

Categories

(Firefox :: New Tab Page, enhancement)

enhancement

Tracking

()

RESOLVED FIXED
155 Branch
Tracking Status
firefox155 --- fixed

People

(Reporter: ini, Assigned: ini)

References

(Blocks 1 open bug)

Details

Attachments

(3 files)

Summary: New Tab's localized Fluent files (a newtab.ftl per locale) and supported-locales.json are now generated at build time into the objdir and packaged into the XPI, instead of being checked into the source tree and updated by hand before each train-hop.

How it works:

  • The locale set is computed at configure time in webext-glue/locales.configure by reading browser/locales/shipped-locales. webext-glue/moz.build iterates that set and drives GENERATED_FILES rules that run locales/gen_locales.py.
  • en-US: always packaged from the in-tree copy, so every build includes it with no network access.
  • All other locales: packaged only for shipped builds and build-extensions CI, which set MOZ_BROWSER_NEWTAB_LOCALES_ALL; they are copied from a single firefox-l10n clone fetched once per build and shared across all per-locale outputs.
  • Escape hatch: mach newtab update-locales is retained for manual generation and for locally inspecting localization status.
Status: NEW → RESOLVED
Closed: 2 months ago
Resolution: --- → FIXED
Target Milestone: --- → 155 Branch
Regressions: 2061641
QA Whiteboard: [qa-triage-done-c156/b155]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: