File tree Expand file tree Collapse file tree 2 files changed +7
-0
lines changed
src/app/ApplicationTemplate.Shared.Views/Configuration Expand file tree Collapse file tree 2 files changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ Prefix your items with `(Template)` if the change is about the template and not
8
8
## 3.10.X
9
9
- Added Dependency Injection validation in the development environment.
10
10
- Cleaned up the persistence configuration files (removed unused parameters and updated documentation).
11
+ - Adding a workaround for a bug with the language change on android.
11
12
12
13
## 3.9.X
13
14
- Removed unnecessary ` IsExternalInit.cs ` files.
Original file line number Diff line number Diff line change @@ -170,7 +170,13 @@ public bool TryApply()
170
170
{
171
171
try
172
172
{
173
+ // We need a special case for Android because the CurrentCulture does not return the correct value after changing the device language.
174
+ #if ANDROID
175
+ var locale = Java . Util . Locale . Default ; // Gets the real system language
176
+ var culture = new CultureInfo ( locale . ToString ( ) ) ;
177
+ #else
173
178
var culture = CultureInfo . CurrentCulture ;
179
+ #endif
174
180
175
181
// Use the settings culture if it is set.
176
182
var settingsCulture = GetCulture ( ) ;
You can’t perform that action at this time.
0 commit comments