Commit 46c329b
committed
feat: Implement in-app language switching
- Add a language selection dialog to the settings screen, allowing users to switch between English and Russian.
- Introduce `LocaleInteractor` as an `expect` class with platform-specific `actual` implementations for Android, iOS, JVM, and WasmJs to manage locale changes.
- Implement `LanguageViewModel` to handle the logic for the language dialog.
- Create a `LanguageDialog` composable in the `ui/shared` module.
- Add UI tests (`LocaleTestCase`) to verify the language switching functionality.
- Update dependencies, including Kotlin, KSP, Accompanist, and Firebase.
- Refactor the `SettingsViewModel` to include a centralized error handler.1 parent 649163b commit 46c329b
File tree
57 files changed
+646
-60
lines changed- .github
- scripts
- secrets
- app
- android
- src
- androidTest/java/com/softartdev/notedelight/ui
- main/java/com/softartdev/notedelight
- desktop
- src/jvmTest/kotlin/com/softartdev/notedelight/ui
- iosApp
- fastlane
- iosApp.xcodeproj
- iosApp.xcworkspace/xcuserdata/artur.xcuserdatad
- iosApp
- web
- src/wasmJsMain/resources
- core
- domain
- src/commonMain/kotlin/com/softartdev/notedelight/model
- presentation
- src
- androidMain/kotlin/com/softartdev/notedelight/interactor
- androidUnitTest/kotlin/com/softartdev/notedelight/presentation/settings
- commonMain/kotlin/com/softartdev/notedelight
- interactor
- presentation/settings
- iosMain/kotlin/com/softartdev/notedelight/interactor
- jvmMain/kotlin/com/softartdev/notedelight/interactor
- wasmJsMain/kotlin/com/softartdev/notedelight/interactor
- docs
- gradle
- ui
- test-jvm
- src/main/kotlin/com/softartdev/notedelight
- di
- ui
- cases
- screen
- dialog
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
57 files changed
+646
-60
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
11 | | - | |
| 11 | + | |
12 | 12 | | |
13 | | - | |
| 13 | + | |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
27 | | - | |
28 | | - | |
| 27 | + | |
| 28 | + | |
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
| |||
73 | 73 | | |
74 | 74 | | |
75 | 75 | | |
| 76 | + | |
76 | 77 | | |
77 | 78 | | |
78 | 79 | | |
| |||
Lines changed: 3 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
44 | 47 | | |
45 | 48 | | |
46 | 49 | | |
| |||
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
5 | 4 | | |
| 5 | + | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| |||
0 commit comments