Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[Intl] Intl does not return region specific language #35309

Closed
@alexander-schranz

Description

@alexander-schranz

Symfony version(s) affected: >= 4.4.0 (4.3.9 works)

Description

The Intl::getLanguageBundle()->getLanguageName('de, 'AT', 'en'); does not longer return the region specific language. Expected Austrian German got German same for en, GB expect British English got English.

also getLanguages seems not longer contain Austrian German and the other region specific values.

How to reproduce

Intl::getLanguageBundle()->getLanguageName('de, 'AT', 'en'); // should return `Austrian German` does return `German`
Intl::getLanguageBundle()->getLanguages('en'); // does not longer contain `Austrian German`

Additional context

Think it has something todo with @ro0NL changes in #33148 I always landing in the exception case with

Couldn't read the indices [Names][en_GB] for the locale "en" in "sulu/web-twig/vendor/symfony/intl/Resources/data/languages". The indices also couldn't be found for the fallback locale(s) "root".

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions