diff options
author | toasted-nutbread <toasted-nutbread@users.noreply.github.com> | 2024-02-18 08:09:42 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-02-18 13:09:42 +0000 |
commit | c48cd6ff6d8dcced7baf1b27ce3ac2449944f5d7 (patch) | |
tree | 997b70dca3f2095f6f2c828e6ad183cf601a9195 /ext/js/language/languages.js | |
parent | 251db0126c20ae159ce9d4cdf29413330f01dc65 (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-x | ext/js/language/languages.js | 14 |
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[]} |