Skip to content

Commit d19c5f1

Browse files
committed
docs: remove redundant warnings about preloading translations in Android SDK usage guide
1 parent e44e60d commit d19c5f1

File tree

1 file changed

+1
-12
lines changed

1 file changed

+1
-12
lines changed

android-sdk/usage.mdx

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -46,11 +46,6 @@ Returns a key when translations are loaded.
4646

4747
**Use for simple/static text** (e. g., error messages, titles).
4848

49-
:::warning
50-
If you choose this function for your app, create a **global corutine** with `Tolgee.preload()`.
51-
See a tip under **a) Preload translations for the current locale from Activity** section.
52-
:::
53-
5449
### Translation with parameters:
5550

5651
```kotlin
@@ -59,12 +54,6 @@ val textWithParams: String? = tolgee.t("key_with_param", mapOf("param" to "value
5954

6055
**_Use for translation with dynamic values._** Add data that changes during the app's runtime (e.g., dates, numbers, usernames).
6156

62-
63-
:::warning
64-
If you choose this function for your app, creating a **global corutine** with `Tolgee.preload()` is reccomended.
65-
See a tip under **a) [Preload translations for the current locale from Activity](#a-preload-translations-for-the-current-locale-from-activity)** section, below.
66-
:::
67-
6857
#### a) Preload translations for the current locale from Activity
6958

7059
```kotlin
@@ -141,7 +130,7 @@ textFlow.collect { text ->
141130

142131
**Use for reactive UI.** Translations update **immediately and automatically** whenever the language or CDN data changes.
143132

144-
#### - Dynamic translation with fallback to Android resources
133+
#### Dynamic translation with fallback to Android resources
145134

146135
```kotlin
147136
val textFlow = tolgee.tFlow(context, R.string.string_key)

0 commit comments

Comments
 (0)