Skip to content

Commit

Permalink
Add Welsh support (#1763)
Browse files Browse the repository at this point in the history
* Add Welsh language

This PR adds the Welsh language as a feature.
https://en.wikipedia.org/wiki/Welsh_language

The welsh language uses capitalisation and has an alphabet with 29 in the alphabet, from the Latin alphabet:
https://en.wikipedia.org/wiki/Welsh_orthography

* lint

* ran eslint

---------

Co-authored-by: bee <autumn@skerritt.blog>
  • Loading branch information
bee-san and bee authored Jan 21, 2025
1 parent 70de0f3 commit 547b663
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
7 changes: 7 additions & 0 deletions ext/js/language/language-descriptors.js
Original file line number Diff line number Diff line change
Expand Up @@ -400,6 +400,13 @@ const languageDescriptors = [
normalizeDiacritics,
},
},
{
iso: 'cy',
iso639_3: 'cym',
name: 'Welsh',
exampleText: 'ddarllen',
textPreprocessors: capitalizationPreprocessors,
},
{
iso: 'yi',
iso639_3: 'yid',
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 @@ -212,6 +212,9 @@ type AllTextProcessors = {
normalizeDiacritics: TextProcessor<'old' | 'new' | 'off'>;
};
};
cy: {
pre: CapitalizationPreprocessors;
};
yi: {
pre: {
combineYiddishLigatures: TextProcessor<boolean>;
Expand Down

0 comments on commit 547b663

Please sign in to comment.