PickBazar Documentation
WelcomeHow It Works
Prerequisite
Installation
Available Scripts & Command
How Can I use this app
Demo Deploy
Features
Settings
Payment
Flash Sale
Social LoginOTP (Mobile Number Verification)WalletEmail ConfigurationEmail VerificationSubscribe
SEO and Analytics
Refund
Real-time Notification
Multilingual & Translation
MultilingualTranslationExisting LanguageNew LanguageDefault Language
Third-party Integrations
Deployment
Back-End Integration
Customizations
Update & Upgrade Guide
FAQ PageContactTerms and conditionsFAQBreaking ChangesSupportChange Log

Translation

If you're using pickbazar-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

pickbazar-laravel -> shop -> public -> locales -> YOUR LANGUAGE
pickbazar-laravel -> admin -> rest -> public -> locales -> YOUR LANGUAGE

For GraphQL

pickbazar-laravel -> shop -> public -> locales -> YOUR LANGUAGE
pickbazar-laravel -> admin -> graphql -> public -> locales -> YOUR LANGUAGE

Translation.png

After translating string from JSONre-runorrebuild` 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.

NewLanguage.png

After creating that folder edit next-i18next.config.js and add the language-code at locales object.

RegisterLanguage.png

Default Language

By default, English is the default language. To change that edit,

For Rest

pickbazar-laravel -> shop -> public -> locales -> YOUR LANGUAGE -> next-i18next.config.js
pickbazar-laravel -> admin -> rest -> public -> locales -> YOUR LANGUAGE -> next-i18next.config.js

For GraphQL

pickbazar-laravel -> shop -> public -> locales -> YOUR LANGUAGE -> next-i18next.config.js
pickbazar-laravel -> admin -> graphql -> public -> locales -> YOUR LANGUAGE -> next-i18next.config.js

And change defaultLocale to your language code.

defaultLanguage.png