diff --git a/docs/supported-languages.md b/docs/supported-languages.md index af3a3f85ad..d4ef4c3c9c 100644 --- a/docs/supported-languages.md +++ b/docs/supported-languages.md @@ -11,6 +11,7 @@ These are the languages currently supported by Yomitan: | Arabic | ar | | Cantonese | yue | | Chinese | zh | +| Danish | da | | Dutch | nl | | English | en | | Finnish | fi | diff --git a/ext/js/language/language-descriptors.js b/ext/js/language/language-descriptors.js index e7a01d5cff..bdaebd61be 100644 --- a/ext/js/language/language-descriptors.js +++ b/ext/js/language/language-descriptors.js @@ -65,6 +65,15 @@ const languageDescriptors = [ exampleText: 'číst', textPreprocessors: capitalizationPreprocessors, }, + { + iso: 'da', + iso639_3: 'dan', + name: 'Danish', + exampleText: 'læse', + textPreprocessors: { + ...capitalizationPreprocessors, + }, + }, { iso: 'de', iso639_3: 'deu', diff --git a/types/ext/language-descriptors.d.ts b/types/ext/language-descriptors.d.ts index ae839e3b34..62643e0c75 100644 --- a/types/ext/language-descriptors.d.ts +++ b/types/ext/language-descriptors.d.ts @@ -79,6 +79,9 @@ type AllTextProcessors = { cs: { pre: CapitalizationPreprocessors; }; + da: { + pre: CapitalizationPreprocessors; + }; de: { pre: CapitalizationPreprocessors & { eszettPreprocessor: BidirectionalConversionPreprocessor;