mirror of
https://github.com/Relintai/pandemonium_engine.git
synced 2025-01-11 13:21:10 +01:00
Ported: HTML5: Make OS.get_locale() match other platforms
- pattlebass
82c3e6229b
This commit is contained in:
parent
8e1244c196
commit
28222d21e5
@ -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);
|
||||
};
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user