Skip to content

Commit

Permalink
Language support: Punjabi
Browse files Browse the repository at this point in the history
  • Loading branch information
JunkFood02 committed Dec 19, 2022
1 parent c494ab5 commit efc41fc
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 0 deletions.
3 changes: 3 additions & 0 deletions app/src/main/java/com/junkfood/seal/util/PreferenceUtil.kt
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,7 @@ object PreferenceUtil {
private const val SERBIAN = 31
private const val AZERBAIJANI = 32
private const val NORWEGIAN_NYNORSK = 33
private const val PUNJABI = 34

// Sorted alphabetically
val languageMap: Map<Int, String> = mapOf(
Expand Down Expand Up @@ -194,6 +195,7 @@ object PreferenceUtil {
PERSIAN to "fa",
POLISH to "pl",
PORTUGUESE_BRAZIL to "pt-BR",
PUNJABI to "pa",
RUSSIAN to "ru",
SERBIAN to "sr",
SINHALA to "si",
Expand Down Expand Up @@ -266,6 +268,7 @@ object PreferenceUtil {
SERBIAN -> R.string.la_sr
AZERBAIJANI -> R.string.la_az
NORWEGIAN_NYNORSK -> R.string.la_nn
PUNJABI -> R.string.la_pa
else -> R.string.follow_system
}
)
Expand Down
1 change: 1 addition & 0 deletions app/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -262,4 +262,5 @@
<string name="la_az" translatable="false">Azərbaycanca</string>
<string name="la_nn" translatable="false">Nynorsk</string>
<string name="generate_new_cookies">Generate new cookies</string>
<string name="la_pa" translatable="false">ਪੰਜਾਬੀ</string>
</resources>
1 change: 1 addition & 0 deletions app/src/main/res/xml/locales_config.xml
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,5 @@
<locale android:name="sr" />
<locale android:name="az" />
<locale android:name="nn" />
<locale android:name="pa" />
</locale-config>

0 comments on commit efc41fc

Please sign in to comment.