Skip to content

Commit

Permalink
Add Welsh language
Browse files Browse the repository at this point in the history
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
  • Loading branch information
bee committed Jan 18, 2025
1 parent bc62b8b commit bf6d8d3
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;

Check failure on line 216 in types/ext/language-descriptors.d.ts

View workflow job for this annotation

GitHub Actions / JavaScript

Extra space before value for key 'pre'

Check failure on line 216 in types/ext/language-descriptors.d.ts

View workflow job for this annotation

GitHub Actions / JavaScript

Multiple spaces found before 'CapitalizationPreprocessors'

Check failure on line 216 in types/ext/language-descriptors.d.ts

View workflow job for this annotation

GitHub Actions / JavaScript

Trailing spaces not allowed
}

Check failure on line 217 in types/ext/language-descriptors.d.ts

View workflow job for this annotation

GitHub Actions / JavaScript

Expected a semicolon
yi: {
pre: {
combineYiddishLigatures: TextProcessor<boolean>;
Expand Down

0 comments on commit bf6d8d3

Please sign in to comment.