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

try locale without country before returning default translation #579

Merged
merged 2 commits into from
Jun 18, 2020
Merged

try locale without country before returning default translation #579

merged 2 commits into from
Jun 18, 2020

Conversation

mjauvin
Copy link
Contributor

@mjauvin mjauvin commented May 11, 2020

If there is a Message translations for "en" locale and current locale (or requested locale) is "en-us", return translation for "en" before returning fallback translation.

@mjauvin mjauvin merged commit 692ac77 into rainlab:master Jun 18, 2020
@mjauvin mjauvin deleted the search-parent-locale branch July 29, 2020 14:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant