Skip to content

Commit

Permalink
product-details: stop generating devedition l10n files (#1596)
Browse files Browse the repository at this point in the history
This brings back a check removed by commit 055c149 "product-details:
don't ask hg.mozilla.org for data we already have".  Commit fa95b9c
"product-details: don't skip l10n for devedition entirely" re-added l10n
fetches for devedition, so we again need to skip it in `get_l10n` to
avoid committing these files
(#1588 was filed to
consider whether we want to do something about it longer term).
  • Loading branch information
jcristau authored Dec 17, 2024
1 parent fa95b9c commit 35604bb
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions api/src/shipit_api/admin/product_details.py
Original file line number Diff line number Diff line change
Expand Up @@ -845,6 +845,10 @@ def get_l10n(
data: ProductDetails = {file_.replace("1.0/", ""): content for file_, content in old_product_details.items() if file_.startswith("1.0/l10n/")}

for release, locales in releases_l10n.items():
# XXX: for some reason we didn't generate l10n for devedition in old_product_details
if Product(release.product) is Product.DEVEDITION:
continue

data[f"l10n/{release.name}.json"] = {
"locales": {locale: dict(changeset=content["revision"]) for locale, content in locales.items()},
"submittedAt": with_default(release.created, to_isoformat, default=""),
Expand Down

0 comments on commit 35604bb

Please sign in to comment.