Skip to content

Commit 9578e7a

Browse files
shynekomaidsvillar
authored andcommitted
feat(localization): add Ukrainian language support
Adds support for the Ukrainian language in the app. Updates the LocaleUtils class to include Ukrainian localization, adds the appropriate string resource for Ukrainian, and modifies the locales list to recognize Ukrainian as a valid language option. These changes enhance the app's accessibility for Ukrainian speakers.
1 parent cf40ec8 commit 9578e7a

File tree

3 files changed

+10
-0
lines changed

3 files changed

+10
-0
lines changed

app/src/common/shared/com/igalia/wolvic/utils/LocaleUtils.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -306,6 +306,8 @@ private static Map<String, Language> getSupportedLocalizedLanguages(@NonNull Con
306306
put(locale.toLanguageTag(), new Language(locale, StringUtils.getStringByLocale(context, R.string.settings_language_danish, locale)));
307307
locale = new Locale("fi","FI");
308308
put(locale.toLanguageTag(), new Language(locale, StringUtils.getStringByLocale(context, R.string.settings_language_finnish, locale)));
309+
locale = new Locale("uk","UA");
310+
put(locale.toLanguageTag(), new Language(locale, StringUtils.getStringByLocale(context, R.string.settings_language_ukrainian, locale)));
309311
locale = new Locale("gl", "ES");
310312
put(locale.toLanguageTag(), new Language(locale, StringUtils.getStringByLocale(context, R.string.settings_language_galician, locale)));
311313
locale = new Locale("pt","PT");

app/src/main/res/values/strings.xml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -342,6 +342,13 @@
342342
the keyboard languages panel list. -->
343343
<string name="settings_language_korean">Korean</string>
344344

345+
346+
<!-- This string is used to label a radio button in the 'Settings' Voice Search and the Display Language dialogs that, when pressed,
347+
changes the app and the language of the speech-recognition-based search to 'Ukrainian'.
348+
The string is also used in the keyboard space bar to show the current keyboard language and in
349+
the keyboard languages panel list. -->
350+
<string name="settings_language_ukrainian">Ukrainian</string>
351+
345352
<!-- This string is used to label a radio button in the 'Settings' Voice Search and the Display Language dialogs that, when pressed,
346353
changes the app and the language of the speech-recognition-based search to 'Italian'.
347354
The string is also used in the keyboard space bar to show the current keyboard language and in

l10n.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ locales = [
1818
"pl",
1919
"ru",
2020
"sv-SE",
21+
"uk",
2122
"zh-CN",
2223
"zh-TW",
2324
]

0 commit comments

Comments
 (0)