HTML5: Make OS.get_locale() match other platforms

Fixes #63029.

(cherry picked from commit d57a76c809)
This commit is contained in:
pattlebass 2022-07-15 19:37:42 +03:00 committed by Rémi Verschelde
parent 101cbe5d5b
commit 82c3e6229b

View file

@ -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.