aboutsummaryrefslogtreecommitdiff
path: root/ext/js/language/languages.js
diff options
context:
space:
mode:
Diffstat (limited to 'ext/js/language/languages.js')
-rwxr-xr-xext/js/language/languages.js14
1 files changed, 1 insertions, 13 deletions
diff --git a/ext/js/language/languages.js b/ext/js/language/languages.js
index f51ca163..f964dfec 100755
--- a/ext/js/language/languages.js
+++ b/ext/js/language/languages.js
@@ -15,19 +15,7 @@
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
-import {descriptor as descriptorEnglish} from './en/language-english.js';
-import {descriptor as descriptorJapanese} from './ja/language-japanese.js';
-
-const languageDescriptors = [
- descriptorEnglish,
- descriptorJapanese
-];
-
-/** @type {Map<string, typeof languageDescriptors[0]>} */
-const languageDescriptorMap = new Map();
-for (const languageDescriptor of languageDescriptors) {
- languageDescriptorMap.set(languageDescriptor.iso, languageDescriptor);
-}
+import {languageDescriptorMap} from './language-descriptors.js';
/**
* @returns {import('language').LanguageSummary[]}