Skip to content

Commit

Permalink
comment
Browse files Browse the repository at this point in the history
  • Loading branch information
StefanVukovic99 committed Feb 3, 2024
1 parent 5abd90c commit 9b5bfa0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ext/js/language/language-util.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export class LanguageUtil {
/** @type {import('language').Language[]} */
const languages = await fetchJson('/js/language/languages/index.json');
for (const {iso, name, flag, exampleText} of languages) {
const features = /** @type {import('language').LanguageFeatures}*/ (languageFeatures.get(iso));
const features = languageFeatures.get(iso) || {textTransformations: []};
this.languages.set(iso, {...features, iso, name, flag, exampleText});
}
}
Expand Down

0 comments on commit 9b5bfa0

Please sign in to comment.