Fix getLocale

This commit is contained in:
2025-02-11 13:16:16 +08:00
parent d04c872491
commit fc66e8ae2d

View File

@@ -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;
} }