mirror of
https://github.com/venera-app/venera.git
synced 2025-09-27 15:57:25 +00:00
Fix getLocale
This commit is contained in:
@@ -156,7 +156,7 @@ class JsEngine with _JSEngineApi, JsUiApi {
|
|||||||
case "UI":
|
case "UI":
|
||||||
return handleUIMessage(Map.from(message));
|
return handleUIMessage(Map.from(message));
|
||||||
case "getLocale":
|
case "getLocale":
|
||||||
return "${App.locale.languageCode}-${App.locale.countryCode}";
|
return "${App.locale.languageCode}_${App.locale.countryCode}";
|
||||||
case "getPlatform":
|
case "getPlatform":
|
||||||
return Platform.operatingSystem;
|
return Platform.operatingSystem;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user