Twill is an open source CMS toolkit for Laravel that helps developers rapidly create a custom admin console that is intuitive, powerful and flexible. Chat with us on Discord at https://discord.gg/cnWk7EFv8R.
I extracted the language codes that are missing. I suggest adding the following to the return of the function getCodeToLanguageMappings in src/Helpers/i18n_helpers.php to complete the code to language mappings:
Description
When adding certain locales in
config/translatable.php
, the ISO language names will appear only as the language code in the edit page.Steps to reproduce
config/translatable.php
, for examplebs
:'locales' => [ 'en', 'bs', ],
Expected result
Correct display of the ISO language name.
Actual result
Missing ISO language name, e.g. in the edit page:![image](https://github.com/area17/twill/assets/29320188/3f1d025b-7084-4203-a65a-3c4c2f0dfb2a)
Versions
Twill version: 3.0.0 Laravel version: 9.52 PHP version: 8.2
Suggested fix
I extracted the language codes that are missing. I suggest adding the following to the return of the function
getCodeToLanguageMappings
insrc/Helpers/i18n_helpers.php
to complete the code to language mappings: