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

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.