Skip to content

Commit

Permalink
Support looking up Danish
Browse files Browse the repository at this point in the history
* Support looking up Danish

* Update the readme too

* Actually don't put this in the same PR

<rikaitan.link>M2Y3ODMyZmEyOTRmZjljOTg4MDA5ZjQwNWM4YTUxMWU5NDYwZjA1MAo=</rikaitan.link>
  • Loading branch information
jason-ojisan committed Sep 3, 2024
1 parent 6970879 commit aea62c7
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 0 deletions.
1 change: 1 addition & 0 deletions docs/supported-languages.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ These are the languages currently supported by Rikaitan:
| Arabic | ar |
| Cantonese | yue |
| Chinese | zh |
| Danish | da |
| Dutch | nl |
| English | en |
| Finnish | fi |
Expand Down
9 changes: 9 additions & 0 deletions ext/js/language/language-descriptors.js
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down
3 changes: 3 additions & 0 deletions types/ext/language-descriptors.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,9 @@ type AllTextProcessors = {
cs: {
pre: CapitalizationPreprocessors;
};
da: {
pre: CapitalizationPreprocessors;
};
de: {
pre: CapitalizationPreprocessors & {
eszettPreprocessor: BidirectionalConversionPreprocessor;
Expand Down

0 comments on commit aea62c7

Please sign in to comment.