Skip to content
#

locale

Here are 221 public repositories matching this topic...

arty-name
arty-name commented Jan 30, 2020

The map parameter has no effect when the list of allowed locales is provided and it only includes full locale tags. This is not clear from the documentation. It this behavior desired at all?

Example configuration:

expressLocale({
  priority: ['query', 'map', 'default'],
  allowed: ['en-CA', 'fr-CA'],
  map: { en: 'en-CA', fr: 'fr-CA' },
})

With this configuration

Improve this page

Add a description, image, and links to the locale topic page so that developers can more easily learn about it.

Curate this topic

Add this topic to your repo

To associate your repository with the locale topic, visit your repo's landing page and select "manage topics."

Learn more

You can’t perform that action at this time.