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

Skip to content

Fallback to the locale code if the associated name isn't found#11391

Merged
lchrusciel merged 1 commit into
Sylius:1.6from
dunglas:locale-fallback
Apr 23, 2020
Merged

Fallback to the locale code if the associated name isn't found#11391
lchrusciel merged 1 commit into
Sylius:1.6from
dunglas:locale-fallback

Conversation

@dunglas
Copy link
Copy Markdown
Contributor

@dunglas dunglas commented Apr 23, 2020

Q A
Branch? 1.6
Bug fix? yes
New feature? no
BC breaks? no
Deprecations? no
Related tickets n/a
License MIT

Prevents a 500 error if the locale code has no associated name in the Intl database. Example with en_DG:

Capture d’écran 2020-04-23 à 11 19 45

@dunglas dunglas requested a review from a team as a code owner April 23, 2020 09:21
Copy link
Copy Markdown
Contributor

@lchrusciel lchrusciel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hello Kevin,

Thanks a lot for the contribution!

I'm wondering if we should cover this with the behat as well.

@lchrusciel lchrusciel merged commit bb80716 into Sylius:1.6 Apr 23, 2020
@lchrusciel
Copy link
Copy Markdown
Contributor

Thanks, Kévin! 🎉

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

Successfully merging this pull request may close these issues.

2 participants