// EXAMPLE VALUES, NOT DEFAULT
// Only mandatory value is api_key:
api_key: "wg_1234567897e2ea993d291b571c2ec93b0",
// Next are optionals, often editable on your Weglot dashboard.
// Options written here are concatenated with dashboard options when it's possible, otherwise these one have priority
// Manually design switcher
// Move switcher somewhere in the page
// Automatically redirect visitor by its navigator's language
// If auto switch is true, but you don't have visitor's language, redirect on this language code, otherwise original language
auto_switch_fallback: "en",
// Only translate these blocks
value: ".only-translate-me" // All other elements in the same page won't be translated anymore!
// Exclude some blocks from translation
value: ".no-translate" // All elements with this class won't be translated
// Exclude some path in website from translation
type: "START_WITH" // IS_EXACTLY, CONTAIN, START_WITH, END_WITH, MATCH_REGEX
// Don't display default switcher, nothing else change, translation works. Useful with Auto-switch feature!
// Use front cache between pages, speed up your page loading!
// Shopify special options:
customer_tag: true, // Add a tag on your customer when they signup, 2-letter code eg. "EN"
order_tag: true, // Add a tag on your order when they are filled, 2-letter code eg. "EN"
translate_search: true, // Translate search keywords from visitors' language
search_parameter: "s", // Because my search input has name="s" attribute.
search_forms: "#sidebar-search, #main-search", // CSS selectors of <form> which contain search input
// Hide original text before loading translated one, true by default
type: 1, // Type of translation, 1 for text, others: https://developers.weglot.com/api/reference#wordtype
selector: "input.someclass[type=text]", // Selector to find element with attribute
attribute: "data-tooltip" // Name of attribute which is translated
remove_unused_link_hooks: true, // If some languages are disable, remove HTML element which contains #Weglot-xx links
extra_merged_selectors: ["code", ".wg-merged-nodes"]