Bagisto is a strong headless eCommerce platform that makes it easy for you to create and run your online store.
However, in the global market today, connecting with more customers means you need to speak their language. This is why language translation is so important.
Whether you want to grow your business or enhance user experience, this guide will help you begin with language translation in Bagisto.
Steps for Language Translation in Bagisto
You can easily perform language translate for both Admin dashboard and for the front-end view.
Language Translation for Admin Dashboard
First of all, you have to go to the root directory of these packages Shop and Admin.
English locale has been provided. If you want to change the language then do the changes in ‘en’ folder.
- For Shop
https://github.com/bagisto/bagisto/blob/2.4/packages/Webkul/Shop/src/Resources/lang/en/app.php
Do the changes in right side value only for example ‘logout’=> ‘logout’, then we have to changes done like ‘logout’=> ‘الخروج’.
You do not need to change variable type word like name, order id, etc and also the word which starts with the colon like ‘:percentage‘.
- For Admin
https://github.com/bagisto/bagisto/blob/2.4/packages/Webkul/Admin/src/Resources/lang/en/app.php
Language Translation for Front-End View
Kindly follow the steps as needed on the admin dashboard.
Step 1:- On Admin Sidebar, click on Setting >> Locales >> Create Locale button.
and click on Save Locale button.
Enter the attribute name in English after which click on Save Attribute.
click on Save Product.
Locale:- You can select either one or multi-select locales as per your choice.
Default Locale:- You have to set your default Locale so that if the Customer will not select any locale then it will be showing in the Default Locale set by you
Once the settings have been done, click on Save Channels.
Steps to Perform on the Front End
Step 1:- At the header of the front end there is an option to select a Locale per your requirements.
Hope it will be helpful for you or if you have any issue feel free to raise a ticket from here.