mirror of
https://gitlab.torproject.org/tpo/anti-censorship/pluggable-transports/snowflake.git
synced 2025-10-14 05:11:19 -04:00
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:
parent
1e33ae830f
commit
1c550599b8
2 changed files with 23 additions and 9 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue