Skip to content

Commit

Permalink
feat(i18n): add Uyghur language
Browse files Browse the repository at this point in the history
currently using Unicode Spec definition of "Uyghur" for language
selection menu presentation

https://github.com/unicode-org/cldr/blob/9bbbc7769d6824229c49817c143ca7afebb00a34/common/main/ug.xml#L490
  • Loading branch information
mikehardy committed Jan 4, 2025
1 parent 5bfc04c commit b419769
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions AnkiDroid/src/main/java/com/ichi2/utils/LanguageUtil.kt
Original file line number Diff line number Diff line change
Expand Up @@ -204,6 +204,8 @@ object LanguageUtil {
"Tsonga" to "ts",
// Tatar (Russia)
"Татар (Россия)" to "tt-RU",
// Uyghur
"ئۇيغۇرچە" to "ug",
// Ukrainian
"Українська" to "uk",
// Urdu (Pakistan)
Expand Down Expand Up @@ -333,6 +335,8 @@ object LanguageUtil {
"th",
// Türkçe
"tr",
// ئۇيغۇرچە
"ug",
// Yкраїнська мова
"uk",
// Tiếng Việt
Expand Down
2 changes: 2 additions & 0 deletions AnkiDroid/src/test/java/com/ichi2/utils/LanguageUtilsTest.kt
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@ class LanguageUtilsTest {
"ro",
"ru",
"sat",
"sc",
"sk",
"sl",
"sq",
Expand Down Expand Up @@ -234,6 +235,7 @@ class LanguageUtilsTest {
"tr",
"ts",
"tt-RU",
"ug",
"uk",
"ur-PK",
"uz",
Expand Down
1 change: 1 addition & 0 deletions lint-release.xml
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,7 @@
<ignore path="res/values-tr/" />
<ignore path="res/values-ts/" />
<ignore path="res/values-tt/" />
<ignore path="res/values-ug/" />
<ignore path="res/values-uk/" />
<ignore path="res/values-ur/" />
<ignore path="res/values-uz/" />
Expand Down
1 change: 1 addition & 0 deletions tools/localization/src/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,7 @@ export const LANGUAGES = [
"tr",
"ts",
"tt-RU",
"ug",
"uk",
"ur-PK",
"uz",
Expand Down

0 comments on commit b419769

Please sign in to comment.