Merge pull request #63043 from pattlebass/fix-html5-locale

HTML5: Make locale string match other platforms
This commit is contained in:
Fabio Alessandrelli 2022-07-15 22:56:37 +02:00 committed by GitHub
commit 08f3053641
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

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.