Description
Bug report
What I did
Configured the Laravel application locale using ISO 15897 codes in config/app.conf
to:
'locale' => 'pt_BR',
Since the Laravel Documentation states:
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 I expected to happen
Backpack strings such as "entries per page" to be translated to Brazilian Portuguese.
What happened
Text is shown in English, the configured fallback_locale
.
What I've already tried to fix it
Checked that the folder names for Brazilian Portuguese are pt-BR
and pt_br
.
Of course, setting locale
to pt-BR
fixes the problem, but then it goes against Laravel recomendation to use the ISO 15897 language codes, and other languages like da_DK
have lang folders with the proper name.
Backpack, Laravel, PHP, DB version
When I run php artisan backpack:version
the output is:
### PHP VERSION:
PHP 7.4.3 (cli) (built: Oct 6 2020 15:47:56) ( NTS )
Copyright (c) The PHP Group
Zend Engine v3.4.0, Copyright (c) Zend Technologies
with Zend OPcache v7.4.3, Copyright (c), by Zend Technologies
### LARAVEL VERSION:
v8.21.0@a61cab167c35f465a923737ee6e6fb99cd5fde88
### BACKPACK VERSION:
4.1.34@d9ec59ab1f9fe03c7106911b5667d912c1cfe1f7
Metadata
Metadata
Assignees
Type
Projects
Status