mcamara / laravel-localization

Easy localization for Laravel
MIT License
3.38k stars 514 forks source link

Language codes. #732

Open naniwebservices opened 4 years ago

naniwebservices commented 4 years ago

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 commented 1 year ago

I also want to know the answer. Any suggestion?

de-otymoshchuk commented 1 year ago

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.