Skip to content

Commit cb8d5c6

Browse files
localization on start page (#422)
1 parent 2e49b5a commit cb8d5c6

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

topics/compose/compose-multiplatform-resources-usage.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -329,8 +329,8 @@ For example:
329329
val fontAwesome = FontFamily(Font(Res.font.font_awesome))
330330
```
331331

332-
To support special characters like emojis or Arabic script in web targets, you need to provide and
333-
[preload fallback fonts](#preload-resources-using-the-compose-multiplatform-preload-api).
332+
To support special characters like emojis or Arabic script in web targets, you need to add the corresponding fonts
333+
to resources and [preload fallback fonts](#preload-resources-using-the-compose-multiplatform-preload-api).
334334

335335
### Raw files
336336

topics/compose/compose-multiplatform.topic

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
<title>Popular use cases</title>
2020
<a href="compose-multiplatform-resources.md" summary="Manage and share common assets in a cross-platform app">Resources</a>
2121
<a href="compose-navigation.md" summary="Use the multiplatform Navigation library to implement navigation in a Compose Multiplatform app">Navigation</a>
22-
<!--<a href="compose-localize-strings.md" summary="Adapt UI for different languages and regions">Localization</a>-->
22+
<a href="compose-localize-strings.md" summary="Adapt UI for different languages and regions">Localization</a>
2323
<a href="compose-test.md" summary="Write and run UI tests for Compose Multiplatform apps">Test Compose Multiplatform UI</a>
2424
</primary>
2525
<secondary>

topics/compose/compose-rtl.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -245,9 +245,9 @@ internal fun TextField(
245245
## Fonts for web targets
246246

247247
Web targets lack built-in fonts for rendering characters for certain locales, such as Arabic and Chinese.
248-
To address this, you need to provide and preload custom fallback fonts, as they are not enabled automatically.
248+
To address this, you need to add custom fallback fonts to resources and preload them, as they are not enabled automatically.
249249

250-
To preload fallback fonts, use the `FontFamily.Resolver.preload()` method:
250+
To preload fallback fonts, use the `FontFamily.Resolver.preload()` method. For example:
251251

252252
```kotlin
253253
val fontFamilyResolver = LocalFontFamilyResolver.current

0 commit comments

Comments
 (0)