From 7227e3b929e6d0ec18c5dd6337ba42cd8d528f18 Mon Sep 17 00:00:00 2001 From: Lucas Kjaero-Zhang Date: Sun, 1 Sep 2024 22:53:34 +0200 Subject: [PATCH] Add hindi language option. (#1387) Add hindi to the language selection dropdown. --- ext/js/language/language-descriptors.js | 6 ++++++ types/ext/language-descriptors.d.ts | 1 + 2 files changed, 7 insertions(+) diff --git a/ext/js/language/language-descriptors.js b/ext/js/language/language-descriptors.js index 8277cee8bf..e7a01d5cff 100644 --- a/ext/js/language/language-descriptors.js +++ b/ext/js/language/language-descriptors.js @@ -139,6 +139,12 @@ const languageDescriptors = [ removeAlphabeticDiacritics, }, }, + { + iso: 'hi', + iso639_3: 'hin', + name: 'Hindi', + exampleText: 'पढ़ने के लिए', + }, { iso: 'hu', iso639_3: 'hun', diff --git a/types/ext/language-descriptors.d.ts b/types/ext/language-descriptors.d.ts index bcb1dfac2b..ae839e3b34 100644 --- a/types/ext/language-descriptors.d.ts +++ b/types/ext/language-descriptors.d.ts @@ -110,6 +110,7 @@ type AllTextProcessors = { grc: { pre: CapitalizationPreprocessors & AlphabeticDiacriticsProcessor; }; + hi: Record; hu: { pre: CapitalizationPreprocessors; };