Skip to content

Commit

Permalink
Clarify comment
Browse files Browse the repository at this point in the history
  • Loading branch information
imnasnainaec committed Aug 28, 2024
1 parent c76a377 commit 3848db2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/i18n/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,8 @@ i18n
// more easily (just switch in the browser and reload, instead of clearing all site data)
detection: { order: ["queryString", "path", "navigator"] },
supportedLngs: i18nLangs,
// "languageOnly" will (e.g.) only load 'es' if the browser is 'es-MX'
// "languageOnly" means use only the language part (first subtag) of the full language tag;
// e.g., if the user's browser is set to 'es-MX', we just use 'es'
load: "languageOnly",
fallbackLng: i18nFallbacks,
interpolation: { escapeValue: false },
Expand Down

0 comments on commit 3848db2

Please sign in to comment.