Skip to content

Commit

Permalink
docs: update README
Browse files Browse the repository at this point in the history
  • Loading branch information
Tienisto committed Nov 15, 2023
1 parent 930ed0f commit 0e82e86
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion slang/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -638,6 +638,8 @@ If you use the built-in `LocaleSettings` solution, then it is quite easy to chan
| `LocaleSettings.useDeviceLocale` | Set to device locale and listen to it | Flutter only |

The `TranslationProvider` listens to locale changes from the device.
So if the user leaves the app and changes the locale in the system settings,
then the app locale will be updated too.

- `LocaleSettings.useDeviceLocale` will enable the listener.
- `LocaleSettings.setLocale` and `LocaleSettings.setLocaleRaw` will disable the listener by default.
Expand Down Expand Up @@ -1015,7 +1017,7 @@ A few remarks:

1. New translations will be parsed but have no effect.
2. New parameters stay unparsed. (i.e. `{name}` stays `{name}`)
3. Missing translations will use translations **before** the override.
3. The overrides can be partial. Only the specified translations will be updated.
4. Overriding a second time reverts the last override.

### ➤ Dependency Injection
Expand Down Expand Up @@ -1817,6 +1819,7 @@ The second one always returns a new instance.
- [okaryo (Japanese)](https://blog.okaryo.io/20230104-split-and-manage-arb-files-for-internationalized-flutter-app-in-yaml-format)
- [zenn (Japanese)](https://zenn.dev/flutteruniv_dev/articles/30cbf9a90442e1)
- [zenn (Japanese)](https://zenn.dev/flutteruniv_dev/articles/6be509f86c0fd7)
- [zenn (Japanese)](https://zenn.dev/al_rosa/articles/19a0443f8cf3d4)

**Videos**

Expand Down

0 comments on commit 0e82e86

Please sign in to comment.