Skip to content

Commit

Permalink
HTML5: Make OS.get_locale() match other platforms
Browse files Browse the repository at this point in the history
Fixes godotengine#63029.

(cherry picked from commit d57a76c)
  • Loading branch information
pattlebass authored and Riordan-DC committed Jan 23, 2023
1 parent 2942f88 commit 476985c
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 476985c

Please sign in to comment.