summaryrefslogtreecommitdiff
path: root/platform
diff options
context:
space:
mode:
authorpattlebass <49322676+pattlebass@users.noreply.github.com>2022-07-15 19:37:42 +0300
committerpattlebass <49322676+pattlebass@users.noreply.github.com>2022-07-15 22:11:39 +0300
commitd57a76c8091ae7545ac462f5a27a3a9ad85588ac (patch)
tree6f4572be087fa41080cbfeea065083ef4adc981d /platform
parent5fec0d232a41a6e99bf4e00222a88bce719637cc (diff)
HTML5: Make `OS.get_locale()` match other platforms
Fixes #63029.
Diffstat (limited to 'platform')
-rw-r--r--platform/javascript/js/engine/config.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/platform/javascript/js/engine/config.js b/platform/javascript/js/engine/config.js
index 2e5e1ed0d1..9c4b6c2012 100644
--- a/platform/javascript/js/engine/config.js
+++ b/platform/javascript/js/engine/config.js
@@ -334,6 +334,7 @@ const InternalConfig = function (initConfig) { // eslint-disable-line no-unused-
locale = navigator.languages ? navigator.languages[0] : navigator.language;
locale = locale.split('.')[0];
}
+ locale = locale.replace('-', '_');
const onExit = this.onExit;
// Godot configuration.