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

Language codes. #732

Open
naniwebservices opened this issue Jul 24, 2020 · 2 comments
Open

Language codes. #732

naniwebservices opened this issue Jul 24, 2020 · 2 comments
Labels

Comments

@naniwebservices
Copy link

From laravel documentation:
For languages that differ by territory, you should name the language directories according to the ISO 15897. For example, "en_GB" should be used for British English rather than "en-gb".
What is the correct language folder name for a locale?
en_GB VS en-GB?
Also could you add country code in the supported locales array? For example en_US country code us.

@ronrun
Copy link

ronrun commented Dec 5, 2022

I also want to know the answer. Any suggestion?

@de-otymoshchuk
Copy link

I got the issue, I have language pt-BR (Portuguese Brazil), which I have in config\laravellocalization.php I have a folder called pt-BG, but for some reason App::getLocale() returns pt. Same issue I have with zh-hans, zh-hant.

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

No branches or pull requests

4 participants