-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
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
Several improvements #3
base: master
Are you sure you want to change the base?
Conversation
"description": "Silex i18n routing service provider.", | ||
"keywords": ["silex", "i18n routing"], | ||
"license": "MIT", | ||
"require": { | ||
"silex/silex": "~2.0@dev", | ||
"silex/silex": "~1.0@dev", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There is another branch https://github.com/jenyak/I18nRoutingServiceProvider/tree/1.0 for support silex 1
@thegeekrv can you also add test for |
Sorry I did a mistake by committing the name change. |
This reverts commit 3541c2a.
In a project, I had to generate every URLs localized, and also the non-localised default locale URL.
I think it's better to let the user a free choice on this point.
To set the option :
$app['i18n_routing.allow_localized_default'] = true;
Let's say I have french and english languages enable.
With the option set to false, this will result in the following generated URLs :
/fr/test
/en/test
With the option set to true, this will result in the following generated URLs :
/test
/fr/test
/en/test