Languages
Last updated
Last updated
The app supports four languages: English, Spanish, French, and German. By default, English is used if the shop/store does not have multiple languages enabled.
The app will use the English language unless otherwise specified. For example, if a customer selects Spanish at the frontend, the app will use the Spanish language. If the customer selects a language not supported by the app, it will default to English.
The languages set will not change the text within the form fields (e.g., "Product Name" in the field will remain the same as the form field title). It will only affect the frontend system languages, such as registered entries and button labels.
It is possible to have multiple languages for forms by creating multiple forms, each tailored to a specific language. For example, there will be an English form for English and a French form for French. Each form's fields can be customized with different languages for the field titles/labels.
Here is an example of how the app determines the form for a specific (Spanish) language:
Request the language type from the user/customer. If the customer uses the language selector to choose a language, it will send that language to the app.
Check if the multiple language form feature is enabled. If not enabled, use the default form.
If the requested language is not English and the multiple language form feature is enabled, the app will attempt to find a form with the slug format [original-form-slug]-[language-code]
. For example, if the user requests the product registration form in Spanish, the app will look for a form with the slug product-registration-es
.
If a form with the slug product-registration-es
exists, it will serve that form. Otherwise, it will default back to the original product-registration
form.
To customize and enable multiple languages, complete the following steps.
Enable the multiple languages form in the App settings > General > Multiple language forms > Enable > Save.
The form must follow this rule: for a multiple language form, the form slug should be the original form slug name followed by the language code.
For example, if you want to add Spanish to the product registration form (which has the slug product-registration), you need to create a new form named Product Registration ES. This will create a new form with the slug product-registration-es.
Alternatively, it is possible to duplicate the original form and rename it. To do this, navigate to Forms > Product Registration > Settings and select Duplicate the form.
Once the new form is created, navigate to the form's design settings and update the field titles/labels to the desired language.
Go to the frontend at /apps/product-registration
, change the language to Spanish, and verify if the Spanish form is loaded correctly.