mirror of
https://github.com/InsanusMokrassar/docs.git
synced 2024-11-22 16:24:00 +00:00
Update resources.md
This commit is contained in:
parent
cc49dca724
commit
7309fb1d20
@ -10,7 +10,7 @@ object Translations {
|
|||||||
val someVariable = buildStringResource(
|
val someVariable = buildStringResource(
|
||||||
"Sample default string"
|
"Sample default string"
|
||||||
) {
|
) {
|
||||||
IetfLanguageCode.German variant lazy "Beispiel für eine Standardzeichenkette"
|
IetfLang.German variant lazy "Beispiel für eine Standardzeichenkette"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
@ -18,9 +18,9 @@ object Translations {
|
|||||||
In this case, you will be able to use it with next logic:
|
In this case, you will be able to use it with next logic:
|
||||||
|
|
||||||
```kotlin
|
```kotlin
|
||||||
Translation.someVariable.translation(IetfLanguageCode.French) // "Sample default string" as default one
|
Translation.someVariable.translation(IetfLang.French) // "Sample default string" as default one
|
||||||
Translation.someVariable.translation(IetfLanguageCode.German) // "Beispiel für eine Standardzeichenkette" as available variant
|
Translation.someVariable.translation(IetfLang.German) // "Beispiel für eine Standardzeichenkette" as available variant
|
||||||
Translation.someVariable.translation(IetfLanguageCode.German.DE) // "Beispiel für eine Standardzeichenkette" as available parent variant
|
Translation.someVariable.translation(IetfLang.German.DE) // "Beispiel für eine Standardzeichenkette" as available parent variant
|
||||||
```
|
```
|
||||||
|
|
||||||
## Additional opportunities on Android platform
|
## Additional opportunities on Android platform
|
||||||
|
Loading…
Reference in New Issue
Block a user