Skip to content

Commit

Permalink
Merge pull request #63043 from pattlebass/fix-html5-locale
Browse files Browse the repository at this point in the history
HTML5: Make locale string match other platforms
  • Loading branch information
Faless authored Jul 15, 2022
2 parents 9904a9d + d57a76c commit 08f3053
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 08f3053

Please sign in to comment.