diff options
author | Fabio Alessandrelli <fabio.alessandrelli@gmail.com> | 2022-07-15 22:56:37 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-07-15 22:56:37 +0200 |
commit | 08f3053641d9eedd760745f276516c53e6fbcbc5 (patch) | |
tree | 0c157ef79b90b6384a660f53e70be0ec53d6d403 | |
parent | 9904a9db5a90f2f1896b6b7e1603ca2dd2745bad (diff) | |
parent | d57a76c8091ae7545ac462f5a27a3a9ad85588ac (diff) |
Merge pull request #63043 from pattlebass/fix-html5-locale
HTML5: Make locale string match other platforms
-rw-r--r-- | platform/javascript/js/engine/config.js | 1 |
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. |