Skip to content

Cannot add a custom locale via config/locales if PHP intl extension is installed. #8924

Closed Answered by brandonkelly
thisisjamessmith asked this question in Ideas
Discussion options

You must be logged in to vote

In Craft 5, you can add custom locales using the localeAliases config setting:

->localeAliases([
    'en-FR' => [
        'aliasOf' => 'en',
        'displayName' => 'English (French)',
    ],
]);

Replies: 5 comments 7 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
2 replies
@brandonkelly
Comment options

@anvart
Comment options

Comment options

You must be logged in to vote
4 replies
@brandonkelly
Comment options

@angrybrad
Comment options

@bymayo
Comment options

@angrybrad
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@tibbis
Comment options

Answer selected by brandonkelly
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Ideas
Labels
enhancement improvements to existing features internationalization 🌐 features related to internationalization or localization
6 participants
Converted from issue

This discussion was converted from issue #6892 on June 22, 2021 06:28.