diff --git a/packages/gasket-plugin-intl/lib/utils/get-preferred-locale.js b/packages/gasket-plugin-intl/lib/utils/get-preferred-locale.js index 0f160b47e..fc53e0286 100644 --- a/packages/gasket-plugin-intl/lib/utils/get-preferred-locale.js +++ b/packages/gasket-plugin-intl/lib/utils/get-preferred-locale.js @@ -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(