We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hello,
My project is in SF 3.2.6 and I try to generate the i18n routes in production mode.
In dev mode, it's ok.
But in production mode, routes generated are always in same locale (the current).
I use this link to switch :
<a href="{{ path(app.request.attributes.get('_route'), {'locale': 'fr'}) }}">fr</a> <a href="{{ path(app.request.attributes.get('_route'), {'locale': 'en'}) }}">en</a>
Can you help me ?
Thank you in advance.
The text was updated successfully, but these errors were encountered:
I found the solution.
For work in the dev mode, I had to update the "_main" route in "routing_dev.yml" with "type: be_simple_i18n" like this :
_main: resource: routing.yml type: be_simple_i18n
And the solution for the production mode is to add the same line in the "config.yml" where the "routing.yml" is imported like this :
framework: ... router: resource: "%kernel.root_dir%/config/routing.yml" type: be_simple_i18n
Sorry, something went wrong.
No branches or pull requests
Hello,
My project is in SF 3.2.6 and I try to generate the i18n routes in production mode.
In dev mode, it's ok.
But in production mode, routes generated are always in same locale (the current).
I use this link to switch :
Can you help me ?
Thank you in advance.
The text was updated successfully, but these errors were encountered: