Skip to content

Commit

Permalink
Merge branch 'master' into dictionary-alias
Browse files Browse the repository at this point in the history
  • Loading branch information
khaitruong922 authored Jul 30, 2024
2 parents 4910fb0 + 0238747 commit 13861d0
Show file tree
Hide file tree
Showing 2 changed files with 47 additions and 0 deletions.
34 changes: 34 additions & 0 deletions ext/js/language/language-descriptors.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,13 @@ const languageDescriptors = [
removeArabicScriptDiacritics,
},
},
{
iso: 'cs',
iso639_3: 'ces',
name: 'Czech',
exampleText: 'číst',
textPreprocessors: capitalizationPreprocessors,
},
{
iso: 'de',
iso639_3: 'deu',
Expand All @@ -84,6 +91,13 @@ const languageDescriptors = [
textPreprocessors: capitalizationPreprocessors,
languageTransforms: englishTransforms,
},
{
iso: 'eo',
iso639_3: 'epo',
name: 'Esperanto',
exampleText: 'legi',
textPreprocessors: capitalizationPreprocessors,
},
{
iso: 'es',
iso639_3: 'spa',
Expand Down Expand Up @@ -166,6 +180,13 @@ const languageDescriptors = [
name: 'Lao',
exampleText: 'ອ່ານ',
},
{
iso: 'lv',
iso639_3: 'lav',
name: 'Latvian',
exampleText: 'lasīt',
textPreprocessors: capitalizationPreprocessors,
},
{
iso: 'ja',
iso639_3: 'jpn',
Expand All @@ -182,6 +203,12 @@ const languageDescriptors = [
},
languageTransforms: japaneseTransforms,
},
{
iso: 'kn',
iso639_3: 'kan',
name: 'Kannada',
exampleText: 'ಓದು',
},
{
iso: 'km',
iso639_3: 'khm',
Expand Down Expand Up @@ -310,6 +337,13 @@ const languageDescriptors = [
exampleText: 'okuyor',
textPreprocessors: capitalizationPreprocessors,
},
{
iso: 'uk',
iso639_3: 'ukr',
name: 'Ukrainian',
exampleText: 'читаєте',
textPreprocessors: capitalizationPreprocessors,
},
{
iso: 'vi',
iso639_3: 'vie',
Expand Down
13 changes: 13 additions & 0 deletions types/ext/language-descriptors.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,9 @@ type AllTextProcessors = {
removeArabicScriptDiacritics: TextProcessor<boolean>;
};
};
cs: {
pre: CapitalizationPreprocessors;
};
de: {
pre: CapitalizationPreprocessors & {
eszettPreprocessor: BidirectionalConversionPreprocessor;
Expand All @@ -87,6 +90,9 @@ type AllTextProcessors = {
en: {
pre: CapitalizationPreprocessors;
};
eo: {
pre: CapitalizationPreprocessors;
};
es: {
pre: CapitalizationPreprocessors;
};
Expand Down Expand Up @@ -117,6 +123,9 @@ type AllTextProcessors = {
pre: CapitalizationPreprocessors & AlphabeticDiacriticsProcessor;
};
lo: Record<string, never>;
lv: {
pre: CapitalizationPreprocessors;
};
ja: {
pre: {
convertHalfWidthCharacters: TextProcessor<boolean>;
Expand All @@ -136,6 +145,7 @@ type AllTextProcessors = {
};
};
km: Record<string, never>;
kn: Record<string, never>;
mn: {
pre: CapitalizationPreprocessors;
};
Expand Down Expand Up @@ -178,6 +188,9 @@ type AllTextProcessors = {
tr: {
pre: CapitalizationPreprocessors;
};
uk: {
pre: CapitalizationPreprocessors;
};
vi: {
pre: CapitalizationPreprocessors & {
normalizeDiacritics: TextProcessor<'old' | 'new' | 'off'>;
Expand Down

0 comments on commit 13861d0

Please sign in to comment.