How do I translate the language displayed by the app?

When our app needs to display text, it will use the values from the bcpoStrings JavaScript object.

You can change the default values by adding this code to your theme.liquid file right after the <head> tag and replacing the text between the single quotes:

var bcpoStrings = {
choose_one: 'Choose one',
quantity: 'Quantity',
please_select: 'Please select',
and: 'and',
or: 'or',
sold_out: 'sold out',
unavailable: 'unavailable',
add_to_cart: 'Add to Cart',
multiselect_message: 'Please choose at least one value for',
at_most: 'at most',
at_least: 'at least',
items: 'items',
selection: 'Selection will add',
selection2: 'to the price',
you_save: 'You Save',

The text for the upload file, and “Please select” warnings are controlled by the browsers selected language. If the users has English selected as their default language then English with show, Spanish for Spanish, etc.

Was this article helpful?
Dislike 2

Pin It on Pinterest