Open bazo opened 10 years ago
now you can get avaiable locales in format sk_SK from
$translator->getAvailableLocales()
but for router you need
new Route('[<locale=sk sk|en>/]<presenter>/<action>[/<id>]', 'homepage:default');
in config i have
whitelist: [sk, de, en]
so it would make sense if i could get the list as sk, en, de instead of sk_SK, de_DE, en_EN so the values would be directly usable in route definition
I agree, I have in my todo to redesign how whitelisting works, so there is going to be a major improvement :)
I have no idea what I meant by the major improvement :confused:
now you can get avaiable locales in format sk_SK from
but for router you need
in config i have
so it would make sense if i could get the list as sk, en, de instead of sk_SK, de_DE, en_EN so the values would be directly usable in route definition