Translation
If you're using chawkbazar-laravel
after v2.0.0
then you can translate static content for multilanguage. It doesn't matter if the language is RTL or not, you can do both. For translation we use this next-i18next package.
Existing Language
Right now, we provide translation files for ar
, de
, en
, es
, he
, and zh.
If your translation language is from them then just edit the translation string from,
For Rest
chawkbazar-laravel -> shop -> public -> locales -> YOUR LANGUAGE
chawkbazar-laravel -> admin -> rest -> public -> locales -> YOUR LANGUAGE
After translating string
from JSON
re-runor
rebuild` project it'll translate the static string.
New Language
If your language is not in the lists then just copy the en
folder from locale
and paste it in the same folder by rename your language code.
After creating that folder edit next-i18next.config.js
and add the language-code
at locales
object.
Default Language
By default, English is the default language. To change that edit,
chawkbazar-laravel -> shop -> public -> locales -> YOUR LANGUAGE -> next-i18next.config.js
chawkbazar-laravel -> admin -> rest -> public -> locales -> YOUR LANGUAGE -> next-i18next.config.js