toonvanstrijp / nestjs-i18n

The i18n module for nestjs.
https://nestjs-i18n.com
Other
642 stars 106 forks source link

Support for "en_US" and not just "en-US" in case of fallbacks #476

Closed ankur-applied closed 1 year ago

ankur-applied commented 1 year ago

The accept-language header is also supports the format en_US in addition to en-US. Looking into the code, it looks like for fallbacks we are just splitting language by - and not _. It would be nice to consider _ as well.