laravel-localization icon indicating copy to clipboard operation
laravel-localization copied to clipboard

Language codes.

Open naniwebservices opened this issue 5 years ago • 2 comments

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.

naniwebservices avatar Jul 24 '20 16:07 naniwebservices

I also want to know the answer. Any suggestion?

ronrun avatar Dec 05 '22 05:12 ronrun

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.

de-otymoshchuk avatar Aug 20 '23 13:08 de-otymoshchuk