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

The requested language "fr" was not available. Available languages: "en, en" #142

Open
CharlyPoppins opened this issue Jan 10, 2015 · 5 comments

Comments

@CharlyPoppins
Copy link

I've got this error

The requested language "fr" was not available. Available languages: "en, en"
406 Not Acceptable - NotAcceptableLanguageException

Got this in my config.yml
jms_i18n_routing:
default_locale: fr
locales: [fr, en, de]
strategy: prefix

I don't know where is the problem ?

@CharlyPoppins
Copy link
Author

This problem happens only with www.mysite.com/en/, it doesn't happen with /fr/ ou /de/

@CharlyPoppins
Copy link
Author

It seems that the problem come from that jms_i18n_routing: in config.yml can't be override by another jms_i18n_routing: in another config.yml.

I'm not enough expert in Symfony to make corrections.

@Bluestart83
Copy link

I have the same issue...

jms_i18n_routing:
default_locale: fr
locales: [fr]
strategy: prefix

@CharlyPoppins
Copy link
Author

I'm using this : strategy: prefix_except_default

so there is no bug, but there is no more suffix for fr

monsite.com/fr => monsite.com/

@Bluestart83
Copy link

That was not my case, so I keep back my old working version.
https://github.com/Bluestart83/JMSI18nRoutingBundle

There Is a Bug for a long time.
Previously it was not detecting fr_FR preferred language (with undescore).
Now not going to the default fallback and taking 'en'. I think This lib is not really tested.

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