From f6c2860195d60012642d29fbd0fc181d5771d7e9 Mon Sep 17 00:00:00 2001 From: Tim van der Meij Date: Thu, 15 Aug 2024 19:43:19 +0200 Subject: [PATCH] Fix the repository URLs in the `importl10n` script We introduced quite a few new strings recently, but during the last few rounds of updates we didn't see new translations updates becoming available. I only just now recalled the announcement that Mozilla is moving from Mercurial to Git, and indeed the Mercurial page at https://hg.mozilla.org/l10n-central hasn't been updated since July anymore and that's were we used to pull our translations from. This commit fixes the issue by changing the URLs to the Mozilla Git repositories hosted on GitHub instead. --- external/importL10n/locales.mjs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/external/importL10n/locales.mjs b/external/importL10n/locales.mjs index 62264d3ff3b42..0809d7ea8aad7 100644 --- a/external/importL10n/locales.mjs +++ b/external/importL10n/locales.mjs @@ -31,7 +31,7 @@ async function downloadLanguageCodes() { console.log("Downloading language codes...\n"); const ALL_LOCALES = - "https://hg.mozilla.org/mozilla-central/raw-file/tip/browser/locales/all-locales"; + "https://raw.githubusercontent.com/mozilla/gecko-dev/master/browser/locales/all-locales"; const response = await fetch(ALL_LOCALES); if (!response.ok) { @@ -52,8 +52,9 @@ async function downloadLanguageFiles(root, langCode) { // Constants for constructing the URLs. Translations are taken from the // Nightly channel as those are the most recent ones. - const MOZ_CENTRAL_ROOT = "https://hg.mozilla.org/l10n-central/"; - const MOZ_CENTRAL_PDFJS_DIR = "/raw-file/default/toolkit/toolkit/pdfviewer/"; + const MOZ_CENTRAL_ROOT = + "https://raw.githubusercontent.com/mozilla-l10n/firefox-l10n/main/"; + const MOZ_CENTRAL_PDFJS_DIR = "/toolkit/toolkit/pdfviewer/"; // Defines which files to download for each language. const files = ["viewer.ftl"];