Skip to content

Commit 649cfb0

Browse files
Al-tronicCharlotte
andauthored
Add remaining Celtic languages (br, gv, kw) (#2469)
Add other Celtic languages Co-authored-by: Charlotte <altronic25@protonmail.com>
1 parent 3bfc888 commit 649cfb0

4 files changed

Lines changed: 34 additions & 2 deletions

File tree

ext/js/language/language-descriptors.js

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,13 @@ const languageDescriptors = [
137137
exampleText: 'чета',
138138
textPreprocessors: capitalizationPreprocessors,
139139
},
140+
{
141+
iso: 'br',
142+
iso639_3: 'bre',
143+
name: 'Breton',
144+
exampleText: 'lenn',
145+
textPreprocessors: capitalizationPreprocessors,
146+
},
140147
{
141148
iso: 'cs',
142149
iso639_3: 'ces',
@@ -268,6 +275,13 @@ const languageDescriptors = [
268275
},
269276
languageTransforms: ancientGreekTransforms,
270277
},
278+
{
279+
iso: 'gv',
280+
iso639_3: 'glv',
281+
name: 'Manx',
282+
exampleText: 'lhaih',
283+
textPreprocessors: capitalizationPreprocessors,
284+
},
271285
{
272286
// no 2 letter iso for hawaiian
273287
iso: 'haw',
@@ -392,6 +406,13 @@ const languageDescriptors = [
392406
},
393407
languageTransforms: koreanTransforms,
394408
},
409+
{
410+
iso: 'kw',
411+
iso639_3: 'cor',
412+
name: 'Cornish',
413+
exampleText: 'lenna',
414+
textPreprocessors: capitalizationPreprocessors,
415+
},
395416
{
396417
iso: 'mn',
397418
iso639_3: 'mon',

package-lock.json

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -118,9 +118,9 @@
118118
"dexie-export-import": "^4.1.4",
119119
"hangul-js": "^0.2.6",
120120
"kanji-processor": "^1.0.2",
121+
"linkedom": "^0.18.10",
121122
"parse5": "^7.2.1",
122-
"yomitan-handlebars": "git+https://github.com/yomidevs/yomitan-handlebars.git#12aff5e3550954d7d3a98a5917ff7d579f3cce25",
123-
"linkedom": "^0.18.10"
123+
"yomitan-handlebars": "git+https://github.com/yomidevs/yomitan-handlebars.git#12aff5e3550954d7d3a98a5917ff7d579f3cce25"
124124
},
125125
"lint-staged": {
126126
"*.md": "prettier --write"

types/ext/language-descriptors.d.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,9 @@ type AllTextProcessors = {
103103
bg: {
104104
pre: CapitalizationPreprocessors;
105105
};
106+
br: {
107+
pre: CapitalizationPreprocessors;
108+
};
106109
cs: {
107110
pre: CapitalizationPreprocessors;
108111
};
@@ -158,6 +161,9 @@ type AllTextProcessors = {
158161
convertLatinToGreek: TextProcessor;
159162
};
160163
};
164+
gv: {
165+
pre: CapitalizationPreprocessors;
166+
};
161167
haw: {
162168
pre: CapitalizationPreprocessors;
163169
};
@@ -207,6 +213,9 @@ type AllTextProcessors = {
207213
};
208214
km: Record<string, never>;
209215
kn: Record<string, never>;
216+
kw: {
217+
pre: CapitalizationPreprocessors;
218+
};
210219
mn: {
211220
pre: CapitalizationPreprocessors;
212221
};

0 commit comments

Comments
 (0)