funktionswerk / hapi-i18n

Translation module for hapi based on mashpie's i18n module
MIT License
39 stars 22 forks source link

Please support language code from cookie #11

Closed hoanghiep closed 7 years ago

hoanghiep commented 7 years ago

Hi codeva

Please support language code from cookie. My clients use browser with default language (en), but they wanna to change language to pt. I cannot change all resources in my project.

funktionswerk commented 7 years ago

Hi hoanghiep,

This plugin is supposed to read the language code from the path parameter. Can you change the set up of the URLs to get the language code from the request URL? Then the client can simply change the language code by modifying the URL.