Closed jahangirahmad closed 7 years ago
If it works: Configure the locales array with 'fa-ir'. Or is there a problem with that solution?
it's ok that use 'fa-ir' in my configuration file. But somewhere else (much) i used fa-IR in codes and database
I send accept-language "fa-IR" to hapi-js api. here hapi-js plugin options:
This code does not detect locale, and set undefined in request.locale. but if if configure locales :['en', 'fa-ir'], it works. what should i do??