All Collections
Advanced
Language locales
Language locales

We use language locales to change the wording at checkout depending on the checkout method

Marija avatar
Written by Marija
Updated over a week ago

In order to load the correct wording at checkout, we load different language locales.


Requirements

For the correct locales to load in the checkout:

  • Zapiet - Pickup + Delivery widget should be enabled on your theme.

  • Correct locales need to be added to your theme.

  • Prepopulate shipping address fields setting needs to be enabled in Zapiet - Pickup + Delivery > Settings > Store Pickup.

  • Prepopulate shipping address fields setting needs to be enabled in Zapiet - Pickup + Delivery > Settings > Local Delivery.


How does it work?

Locales should be added to the theme automatically once you enable the widget on a theme. Learn more about enabling the widget in our Enabling the cart widget on your theme article.

By default, we load:

  • English (en) for shipping

  • English Australian (en-AU) for delivery

  • English Canadian (en-CA) for pickup

Exceptions are stores located in Australia and Canada. The locales we load at checkout for those stores are:

  • English (en) for shipping

  • English American (en-US) for delivery

  • English British (en-GB) for pickup


Add locales to your theme

In case when the locales were not added automatically, you can add them manually.

  1. Click Online Store, then Themes.

  2. Click ... then Edit code, next to the theme you want to edit.

  3. In Locales folder, click Add a new locale.

  4. Under File name add en-CA and click Done.

    • If your store is located in Australia or Canada, name this file en-GB.

  5. When the locale is created, delete the contents that were added automatically.

  6. Click the button below to download the file, and copy/paste the contents into your en-CA locale.

  7. Click Save.

  8. In Locales folder, click Add a new locale.

  9. Under File name add en-AU and click Done.

    • If your store is located in Australia or Canada, name this file en-US.

  10. When the locale is created, delete the contents that were added automatically.

  11. Click the button below to download the file, and copy/paste the contents into your en-AU locale.

  12. Click Save.

You've now added the correct locales for pickup and delivery.


One-page checkout

The locales should now be loading correctly on your store.

  • en-CA when pickup is selected

  • en-AU when delivery is selected

  • en when shipping is selected


Three-page checkout

The locales should now be loading correctly on your store.

  • en-CA when pickup is selected

  • en-AU when delivery is selected

  • en when shipping is selected


Other languages

If your store is in Spanish or French, please use our translated locales.

If your store is located in Mexico, Latin America, Canada or Switzerland, please contact us on chat or at [email protected] to set up language locales.

For Spanish, you can use:

  • Spanish (es) for shipping

  • Spanish Latin American (es-419) for delivery

  • Spanish Mexican (es-MX) for pickup

Open and save the selected template in order to access the correct wording, then follow the steps in Add locales to your theme section.

For French, you can use:

  • French (fr) for shipping

  • French Canadian (fr-CA) for delivery

  • French Swiss (ft-CH) for pickup

Open and save the selected template in order to access the correct wording, then follow the steps in Add locales to your theme section.


Troubleshooting

  • If the locales are not loading correctly, disable Prepopulate shipping address fields setting in Zapiet - Pickup + Delivery > Settings > Store Pickup and Zapiet - Pickup + Delivery > Settings > Local Delivery, and enable it again.

  • Test locales in the incognito mode to avoid caching issues.

  • Check if the checkout URL contains the correct locales (e.g. en-AU for delivery)

  • For any further questions regarding languages, please contact us at [email protected], and we'd be happy to help!


Files:

Attachment icon
Attachment icon
Attachment icon
Attachment icon
Attachment icon
Attachment icon
Did this answer your question?