Skip to content

Commit

Permalink
Fix the repository URLs in the importl10n script
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
timvandermeij committed Aug 15, 2024
1 parent 44f7e3c commit f6c2860
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions external/importL10n/locales.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand All @@ -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"];
Expand Down

0 comments on commit f6c2860

Please sign in to comment.