tStyled
Provides an immediate translation for the given string resource ID within the given context. If a translation key is derived from the string resource, it retrieves the translation using Tolgee. Otherwise, it falls back to returning the default string resource value.
This is a special version that allows returning a CharSequence instead of a String and will fall back to the Android getText
method if no translation is found - preserving formatting.
If translation is found, no style information is preserved and the method acts the same as t.
Return
The translated string if a key-based translation is found; otherwise, the default string resource value.
Parameters
The context used to access resources and provide localization settings.
The resource ID of the string to be translated.