Closed jney closed 8 years ago
could the plugin support Accept-Language and have appropriate Content-Language in the response ?
Accept-Language
Content-Language
ie:
curl -i 0.0.0.0:3333/hello -H 'Accept-Language: fr' HTTP/1.1 200 OK content-language: fr salut
for info:
req.i18n.locale // "fr" req.i18n.getLocale() // "en"
Did you have a look at https://github.com/ozum/hapi-locale? This plugin supports the extraction of the locale from the request header.
could the plugin support
Accept-Language
and have appropriateContent-Language
in the response ?ie: