mirror of
https://github.com/InsanusMokrassar/MicroUtils.git
synced 2025-10-06 15:49:25 +00:00
update dependencies and remove redundant usages of old IetfLanguageCode
This commit is contained in:
@@ -1,10 +1,10 @@
|
||||
package dev.inmo.micro_utils.strings
|
||||
|
||||
import dev.inmo.micro_utils.language_codes.toIetfLanguageCode
|
||||
import dev.inmo.micro_utils.language_codes.toIetfLang
|
||||
import java.util.Locale
|
||||
|
||||
fun StringResource.translation(locale: Locale = Locale.getDefault()): String {
|
||||
return translation(locale.toIetfLanguageCode())
|
||||
return translation(locale.toIetfLang())
|
||||
}
|
||||
|
||||
fun Locale.translation(resource: StringResource): String = resource.translation(this)
|
Reference in New Issue
Block a user