HTML5: Make OS.get_locale()
match other platforms
Fixes #63029.
(cherry picked from commit d57a76c809
)
This commit is contained in:
parent
101cbe5d5b
commit
82c3e6229b
1 changed files with 1 additions and 0 deletions
|
@ -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.
|
||||
|
|
Loading…
Reference in a new issue