Skip to content

Commit

Permalink
HTML5: Make OS.get_locale() match other platforms
Browse files Browse the repository at this point in the history
  • Loading branch information
pattlebass committed Jul 15, 2022
1 parent 5fec0d2 commit d57a76c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions platform/javascript/js/engine/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit d57a76c

Please sign in to comment.