Skip to content

Intl region specific language configurable #36284

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

Closed
Tersoal opened this issue Mar 31, 2020 · 4 comments
Closed

Intl region specific language configurable #36284

Tersoal opened this issue Mar 31, 2020 · 4 comments

Comments

@Tersoal
Copy link

Tersoal commented Mar 31, 2020

Description
Hi. The last change in Intl languages (#35309) breaks my application. I have a glossaries application that relies on Intl languages, and languages variations are critical.

Would be possible to make this option configurable?

Example
In symfony 4.3, this languages are returned (extract):

   {
      "code":"es",
      "name":"espa\u00f1ol"
   },
   {
      "code":"es_ES",
      "name":"espa\u00f1ol de Espa\u00f1a"
   },
   {
      "code":"es_MX",
      "name":"espa\u00f1ol de M\u00e9xico"
   },
   {
      "code":"es_419",
      "name":"espa\u00f1ol latinoamericano"
   },

In symfony 4.4, this languages are returned (extract):

   {
      "code":"es",
      "name":"espa\u00f1ol"
   },

Regional languages are missed and are very important because glossaries from US english to es_ES spanish are different from GB english to es_ES spanish, and those are very different if target language is es_MX.

@stof
Copy link
Member

stof commented Mar 31, 2020

region-specific things are locales, not languages. And there is a separate API to get them.

@Tersoal
Copy link
Author

Tersoal commented Mar 31, 2020

I will try with locales, thank you.

@javiereguiluz
Copy link
Member

Meanwhile, let's close this one as "fixed". If using the Locales is not possible for some reason or the problem is different, please tell us. Thanks!

@Tersoal
Copy link
Author

Tersoal commented Apr 1, 2020

Only one comment trying to help others to manage it. I have had to merge Languages and Locales arrays to allow all possible languages, because Locales does not return Abkhazian for example.

Thank you all.

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

No branches or pull requests

4 participants