Closed sivabalan02 closed 7 years ago
Can you provide a simplified setup that produces the undefined error? Maybe as a Git repo?
https://github.com/sivabalan02/hapi-i18n-issue When in call signup api http://localhost:8080/signup its gives undefined error
There is a syntax error in your JSON file (remove the comma): https://github.com/sivabalan02/hapi-i18n-issue/blob/master/api/locales/en.json#L2 This caused a parseError when loading the i18n module. Unfortunately, i18n fails silently without any error message. You can display the logs of i18n by setting the DEBUG environment variable:
export DEBUG=i18n:*
Thanks funktionswerk. Now its working.
I used glue plugin on my application. Here is my code:
i18n.js: