Default Localization Listener
Default implementation of a LocalizationListener which just calls through to default Android localization methods in android.content.res.Resources class and picks up strings from XML files.
Functions
Link copied to clipboard
Link copied to clipboard
open fun getLocalizedString(@NonNull context: Context, @StringRes stringId: Int, @NonNull currentLocale: Locale, @Nullable view: View): String
open fun getLocalizedString(@NonNull context: Context, @StringRes stringId: Int, @NonNull currentLocale: Locale, @Nullable view: View, formatArgs: Array<Any>): String
Called when a string needs to be localized and has to return a localized string.