summaryrefslogtreecommitdiff
path: root/ext/js/language/languages.js
diff options
context:
space:
mode:
authortoasted-nutbread <toasted-nutbread@users.noreply.github.com>2024-02-18 08:09:42 -0500
committerGitHub <noreply@github.com>2024-02-18 13:09:42 +0000
commitc48cd6ff6d8dcced7baf1b27ce3ac2449944f5d7 (patch)
tree997b70dca3f2095f6f2c828e6ad183cf601a9195 /ext/js/language/languages.js
parent251db0126c20ae159ce9d4cdf29413330f01dc65 (diff)
Language descriptors organization (#704)
* Move languageDescriptorMap * Move text preprocessors * Merge into language-descriptors.js * Merge typescript * Initialize inline * Move types * Update types * Update eslint * Update jsconfig reference * Rename
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[]}