Open willemserik opened 5 years ago
@willemserik check https://github.com/basz/SlmLocale develop, maybe this help you
This repository has been closed and moved to laminas/laminas-router; a new issue has been opened at https://github.com/laminas/laminas-router/issues/2.
When i set the locale parameter to another value than the default value that has been defined in module.config.php, the routing does not take this into account and uses the default value of locale instead.
Code to reproduce the issue
route definition of module.config.php:
layout in which you can choose another language: website.phml I have hard coded the value to 'en':
Expected results
I should expect that ZF knows that locale should be set to 'en' without having to send the 'locale' parameter with every link you create on the website. When I go to the faq, i would expect that te site goes to http://mydomain.com/**en**/faq
Actual results
When I switch to en, the routing uses the default value 'nl' instead So when I go to the faq now, the site goes to http://mydomain.com/**nl**/faq , when I have switched the language to en.