Language
Dashcode comes with multilingual support. It is super easy to add new language. Here we will show how can you add a new language.
Step-1: Select your flag
- Find your desired flag from iconify. E.g. 'Bangladesh' searched in iconify then select icon provider
emojione
and then copy the country name part from the icon name. E.g.emojione:flag-for-bangladesh
copiedbangladesh
.
Step-2: Add your desire language in app config
- Add your language code and flag name to the
available_locales
array inconfig/app.php
. Eg.[.. , 'bn' => 'bangladesh', ..]
Step-3: Add your translation
- Create a new json file in
lang/
with the name of your language code. Eg.lang/bn.json
- Copy the content of
lang/en.json
to your new json file. - Translate the content of your new json file.
WARNING
We used Google Translate so the translation may not be 100% accurate.