Automate generating the list of available languages for the badge

Note that getMessage in the badge depends on having a complete set of
translations, unlike the webextension, which will fallback to the
default for a string.
This commit is contained in:
Arlo Breault 2019-08-22 12:28:26 -04:00
parent 1e33ae830f
commit 1c550599b8
2 changed files with 23 additions and 9 deletions

View file

@ -1,4 +1,4 @@
/* global Util, Params, Config, UI, Broker, Snowflake, Popup, Parse */
/* global Util, Params, Config, UI, Broker, Snowflake, Popup, Parse, availableLangs */
/*
UI
@ -83,9 +83,6 @@ function setSnowflakeCookie(val, expires) {
}
const defaultLang = 'en_US';
const availableLangs = new Set([
'en_US',
]);
// Resolve as in,
// https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/Internationalization#Localized_string_selection