Skip to content

Commit

Permalink
Replacing determine_locale with get_locale as the more proper one to …
Browse files Browse the repository at this point in the history
…use. We need the website's locale, not the request one.
  • Loading branch information
message-dimke committed Jul 8, 2024
1 parent f511f28 commit 25845d4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/LocaleMapper.php
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ public static function get_locale_for_api(): string {
* @return string
*/
private static function get_wordpress_locale() {
$wordpress_locale = determine_locale();
$wordpress_locale = get_locale();
return str_replace( '_', '-', $wordpress_locale );
}
}

0 comments on commit 25845d4

Please sign in to comment.