Skip to content

Commit

Permalink
chore: change to use language
Browse files Browse the repository at this point in the history
  • Loading branch information
jpina1-godaddy committed Jan 9, 2025
1 parent a7aabb5 commit 2556fca
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ function getLocaleFromHeaders(gasket, req, locales, defaultLocale) {
debug(`Received accept-language of ${acceptLanguage}`);
try {
// Get highest or highest from locales if configured
preferredLocale = formatLocale(negotiator.languages(locales)[0]);
preferredLocale = formatLocale(negotiator.language(locales));
debug(`Using ${preferredLocale} as starting locale`);
} catch (error) {
gasket.logger.debug(
Expand Down

0 comments on commit 2556fca

Please sign in to comment.