Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(i18n): add Uyghur language #17700

Merged
merged 2 commits into from
Jan 4, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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",
david-allison marked this conversation as resolved.
Show resolved Hide resolved
"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
7 changes: 5 additions & 2 deletions tools/localization/src/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,10 +75,12 @@ export const I18N_FILES = [
// 3) When you add a language, please also add it to APP_LANGUAGES in LanguageUtil.kt
// BACKEND_LANGS in LanguageUtil is informational and not used for anything, so it's not imperative
// to keep it up to date.
// 4) If you add a language with a regional variant (anything with a hyphen) and a different variant
// 4) add it to LanguageUtilsTest > testCurrentLanguagesHaveNotChanged, taking care to
// follow the instructions there to alter the the previous vs current variable definitions
// 5) If you add a language with a regional variant (anything with a hyphen) and a different variant
// with the same root exists, you must add the root to 'localizedRegions'
// e.g., 'ga-IE' exists with no other 'ga-' entries yet, to add 'ga-EN', also add ga to localizedRegions
// 5) Update MissingDefaultResource in lint-release.xml
// 6) Update MissingDefaultResource in lint-release.xml
export const LANGUAGES = [
"af",
"am",
Expand Down Expand Up @@ -161,6 +163,7 @@ export const LANGUAGES = [
"tr",
"ts",
"tt-RU",
"ug",
"uk",
"ur-PK",
"uz",
Expand Down
Loading