Skip to content

Commit

Permalink
setup croatian language
Browse files Browse the repository at this point in the history
  • Loading branch information
dead8309 committed Jun 12, 2023
1 parent 5f30c4a commit a171478
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ private const val VIETNAMESE = 10
private const val ITALIAN = 11
private const val FILIPINO = 12
private const val FRENCH = 13
private const val CROATIAN = 14

val languages: Map<Int, String> =
mapOf(
Expand All @@ -48,7 +49,8 @@ val languages: Map<Int, String> =
Pair(VIETNAMESE, "vi"),
Pair(ITALIAN, "it"),
Pair(FILIPINO, "fil"),
Pair(FRENCH, "fr")
Pair(FRENCH, "fr"),
Pair(CROATIAN,"hr")
)

fun getLanguageConfig(languageNumber: Int = Prefs[Prefs.LANGUAGE]): String {
Expand Down Expand Up @@ -87,6 +89,7 @@ fun getLanguageDesc(language: Int = getLanguageNumber()): String {
ITALIAN -> R.string.locale_it
FILIPINO -> R.string.locale_fil
FRENCH -> R.string.locale_fr
CROATIAN -> R.string.locale_hr
else -> R.string.follow_system
}
)
Expand Down

0 comments on commit a171478

Please sign in to comment.