From 7309fb1d202bbb6e2bce448effd63d347d74b16c Mon Sep 17 00:00:00 2001 From: InsanusMokrassar Date: Fri, 22 Dec 2023 03:23:56 +0600 Subject: [PATCH] Update resources.md --- docs/micro_utils/resources.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/micro_utils/resources.md b/docs/micro_utils/resources.md index 359d7d1..a00d0a5 100644 --- a/docs/micro_utils/resources.md +++ b/docs/micro_utils/resources.md @@ -10,7 +10,7 @@ object Translations { val someVariable = buildStringResource( "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: ```kotlin -Translation.someVariable.translation(IetfLanguageCode.French) // "Sample default string" as default one -Translation.someVariable.translation(IetfLanguageCode.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.French) // "Sample default string" as default one +Translation.someVariable.translation(IetfLang.German) // "Beispiel für eine Standardzeichenkette" as available variant +Translation.someVariable.translation(IetfLang.German.DE) // "Beispiel für eine Standardzeichenkette" as available parent variant ``` ## Additional opportunities on Android platform