Skip to content
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

Doesn't work with lexik translation #103

Open
Vansamang opened this issue Apr 28, 2017 · 1 comment
Open

Doesn't work with lexik translation #103

Vansamang opened this issue Apr 28, 2017 · 1 comment

Comments

@Vansamang
Copy link

Hello,

I have installed this module and the lexik/LexikTranslationBundle.
Everyting works fine, except when i try to visit the translation admin page.

This error occures

An exception has been thrown during the rendering of a template ("I18nRoute "lexik_translation_delete_locale" (-locale-) does not exist.").

Symfony: 3.1.10
i18n-routing-bundle: 2.4
lexik/translation-bundle: 4.0.1

@Yoshix
Copy link

Yoshix commented Jan 24, 2018

I have the same issue when using JMSTranslationBundle. With jms the problem is that BeSimpleI18nRoutingBundle, while generating routes, uses the 'locale' key from the given parameters:

https://github.com/BeSimple/BeSimpleI18nRoutingBundle/blob/master/src/Routing/Router.php#L65

which conflicts with how the JMSTranslationBundle generates routes:

https://github.com/schmittjoh/JMSTranslationBundle/blob/master/Resources/views/Translate/index.html.twig#L6

Is there a reason why not the usual '_locale' key is used? I think this would prevent some conflicts.

Or if that's not possible, maybe test if the non-inflected route-name exists before throwing an error?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants