HTML5: Make OS.get_locale() match other platforms

Fixes #63029.
This commit is contained in:
pattlebass 2022-07-15 19:37:42 +03:00
parent 5fec0d232a
commit d57a76c809

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.