Skip to content

Commit 0867e6c

Browse files
committed
Small text adjustments
1 parent 3e7db9a commit 0867e6c

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

MIGRATION.md

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,16 @@
11
# Phrase Over-the-Air Migration Guide
22

33
### Update to v3.11.x+
4-
Version 3.11.0 starts the process of removing the Android Context wrapping by Phrase.
5-
Wrapping the Android Context can lead to severe issues with other libraries. E.g. App crashes can occur in combination of WebViews.
4+
Version 3.11.0 begins the process of removing the Android Context wrapping by Phrase.
5+
6+
Wrapping the Android Context can lead to severe issues with other libraries. E.g. App crashes can occur in combination with WebViews.
67

78
#### Suggested Actions:
89
- Replace `super.attachBaseContext(Phrase.wrapContext(base))` with `super.attachBaseContext(base)` in your Application class.
910
- Replace `Phrase.getDelegate(super.getDelegate())` with `Phrase.getDelegate(super.getDelegate(), wrapContext = false)` in your Activities.
10-
- Replace the Android resource calls with the Phrase pendants:
11+
- Replace Android resource calls with the Phrase equivalents:
1112

12-
|Android Resource Call|Phrase Pendant|
13+
|Android Resource Call|Phrase Equivalent|
1314
|-------------|--------------|
1415
|`Context.getString()`|`Context.getPhraseString()`|
1516
|`Context.getText()`|`Context.getPhraseText()`|
@@ -25,8 +26,8 @@ Wrapping the Android Context can lead to severe issues with other libraries. E.g
2526
|`Resources.getQuantityText()`|`Resources.getPhraseQuantityText()`|
2627
|`TypedArray.getString()`|`TypedArray.getStringWithPhrase()`|
2728
|`TypedArray.getText()`|`TypedArray.getTextWithPhrase()`|
28-
- Remove all `Phrase {}` wrapper composable calls if you used Phrase in Compose before.
29-
- Use the Phrase calls to get translations in Compose:
29+
- Remove all `Phrase {}` wrapper composable calls if you used Phrase in Compose previously.
30+
- Use the Phrase calls to retrieve translations in Compose:
3031

3132
|Phrase OTA Composables|
3233
|-------|

0 commit comments

Comments
 (0)