laravel-localization
laravel-localization copied to clipboard
Language codes.
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.
I also want to know the answer. Any suggestion?
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.