Should resolve #132
Problem is where locale getting passed is en-US, fr-FR, while we are checking for ALLOWED_LOCALES: const ALLOWED_LOCALES = [
'en',
'ja',
'fr',
'de',
'es',
'ru',
'pt',
'zh',
'it',
'ar',
'pl',
'uk',
];
So the option is to split "-" and take first part of the locale that matches the allowed list.
Should resolve #132 Problem is where locale getting passed is en-US, fr-FR, while we are checking for ALLOWED_LOCALES: const ALLOWED_LOCALES = [ 'en', 'ja', 'fr', 'de', 'es', 'ru', 'pt', 'zh', 'it', 'ar', 'pl', 'uk', ];
So the option is to split "-" and take first part of the locale that matches the allowed list.