mirror of
https://github.com/InsanusMokrassar/MicroUtils.git
synced 2024-12-23 09:07:14 +00:00
add opportunity to use translation with default locale
This commit is contained in:
parent
151aa1863d
commit
4a454f3d67
@ -3,7 +3,7 @@ package dev.inmo.micro_utils.strings
|
||||
import dev.inmo.micro_utils.language_codes.toIetfLanguageCode
|
||||
import java.util.Locale
|
||||
|
||||
fun StringResource.translation(locale: Locale): String {
|
||||
fun StringResource.translation(locale: Locale = Locale.getDefault()): String {
|
||||
return translation(locale.toIetfLanguageCode())
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user