It will be great to have the option to add a new language and be able to set/change the default language in App Locale.
I second for this. Please add this feature.
It is present, only now this option is activated when checking the creation of the object, that it be multi-language.
Hello,
Can you please explain this.
Solution below doesn’t allow to manage patterns inside the application (App locale) and is a bit cumbersome in maintenance (there are ways to automate it, though), but at least allows to use any language you want:
- Generate your app
- Go to “\config\locales.php” file and add your desired locale entry there e.g.
‘sv’ => ‘Swedish’ - Go to resources\lang:
- copy folder “en-US” and rename the copy to desired locale e.g. “sv”
- copy file en-us.json and rename the copy to desired locale e.g. “sv.json”
- translate patterns in newly created folder and json file to desired language
This will cause language to be available for selection in the application and proper translations to be visible.
