You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: android-sdk/quickstart.mdx
+21-15Lines changed: 21 additions & 15 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -142,7 +142,26 @@ For your app to download translation files, you need to provide a CDN URL prefix
142
142
2. Copy the full CDN URL prefix.
143
143
3. You can use different prefixes per environment (dev/staging/prod).
144
144
145
-
### Optional: Verify connectivity locally:
145
+
:::info
146
+
If you have a different integration setup (for example, using tolgee-cli and bundling JSON translation files in assets), the initialization may look different.
147
+
:::
148
+
149
+
### Other Platforms
150
+
151
+
For non-Android platforms, initialization is similar but without the Android-specific storage provider:
152
+
153
+
```kotlin
154
+
funinitTolgee() {
155
+
Tolgee.init {
156
+
contentDelivery {
157
+
url ="https://cdn.tolg.ee/your-cdn-url-prefix"
158
+
// Create a custom storage provider for caching the latest translations from CDN if needed
@@ -152,20 +171,7 @@ You should receive a 200 response.
152
171
If you get 403 (Forbidden) or 404 (Not found), double‑check the prefix.
153
172
154
173
:::tip
155
-
Dynamic updates without republishing
156
-
:::
157
-
158
-
To receive **fresh translations without needing to publish new app versions**, wrap the base context in your Activities.
159
-
This way, APIs like getString will use Tolgee **dynamically**.
160
-
161
-
-**With wrapped context** → fresh translations from the Tolgee CDN will be provided automatically.
162
-
163
-
-**Without wrapped context** → only the translations already bundled or previously cached will be available.
164
-
165
-
**See the step-by-step guide in Usage.**
166
-
167
-
:::info
168
-
If you have a different integration setup (for example, using tolgee-cli and bundling JSON translation files in assets), the initialization may look different.
174
+
Dynamic updates without republishing. See the step-by-step guide in [**Usage**](./usage.mdx).
0 commit comments