Ported: HTML5: Make OS.get_locale() match other platforms

- pattlebass
82c3e6229b
This commit is contained in:
Relintai 2022-07-29 20:54:31 +02:00
parent 8e1244c196
commit 28222d21e5

View File

@ -334,6 +334,7 @@ const InternalConfig = function(initConfig) { // eslint-disable-line no-unused-v
locale = navigator.languages ? navigator.languages[0] : navigator.language;
locale = locale.split('.')[0];
}
locale = locale.replace('-', '_');
const onExit = this.onExit;
// Pandemonium configuration.
@ -354,4 +355,4 @@ const InternalConfig = function(initConfig) { // eslint-disable-line no-unused-v
};
};
return new Config(initConfig);
};
};