${isCart ? 'The items in the shopping cart do not participate in any recommendation rule. Add the participating items to your shopping cart to check the design.' : ''}
${isProduct ? 'This product did not participated in any recommendation rule. Switch to another product to check the design.' : ''}
${isCollection ? 'The items in this collection do not participate in any recommendation rule. Switch the participating items to check the design.' : ''}
${isIndex ? 'The home page do not participate in any recommendation rule.' : ''}
(This prompt would not display on client-side)
const getPluginI18nMessages = (message, replaceObj = {}) => {
const lang = document.documentElement.lang || "en-US";
const [form, key] = message.split('.')
let text = window.payment_plugin_message['en-US'][form][key];
if (window.payment_plugin_message[lang][form].hasOwnProperty(key)) {
text = window.payment_plugin_message[lang][form][key];
}
Object.keys(replaceObj).forEach(key => {
text = text.replace(new RegExp(`\{${key}\}`, 'gi'), replaceObj[key]);
})
return text;
}
const zhCN = {
ec: {
not_active_channel: "่ฏทๅฐๆถๆฌพ่ฎพ็ฝฎไธญ{channelName}ๆๅจใๅฟซๆทๆฏไปๆ้ฎใ่ฎพ็ฝฎไธญ้ๆฉๅ ถไป็ๆๅกๆไพๆน๏ผๅฆๅๆ้ฎๅฐๆ ๆณๅฑ็คบ",
not_support_theme: "ๅฝๅไธป้ขไธๆฏๆๆทปๅ ใๅฟซๆทๆฏไปๆ้ฎใ",
more_button: "ๆดๅคๆฏไปๆนๅผ",
skeleton_layer_tips_title: "ๅฟซๆทๆฏไปๆ้ฎ",
skeleton_layer_tips_content: "่ฏท็นๅปๅทฆไพงๅ่กจไธญ็ใๅฟซๆทๆฏไปๆ้ฎใ๏ผๅจ่ฎพ็ฝฎ้กต้ขๅผๅฏๆณ่ฆ็ๅฑ็คบ็ๆฏไปๆ้ฎ",
mock_tips: "ๅฟซๆทๆฏไปๆ้ฎๆฏๅฆๅฑ็คบ่ฟๅๅณไบไนฐๅฎถไฝฟ็จ็ๆต่งๅจไปฅๅๅๅ็่ดงๅธใ้้ข",
not_find_form_tips: "ๅฟซๆทๆฏไปๆ้ฎ็ปไปถไป ๆฏๆ้ ็ฝฎๅฐๅๅ่ฏฆๆ ๅก็ๅ ",
}
};
const zhTW = {
ec: {
not_active_channel: "่ฏทๅฐๆถๆฌพ่ฎพ็ฝฎไธญ{channelName}ๆๅจใๅฟซๆทๆฏไปๆ้ฎใ่ฎพ็ฝฎไธญ้ๆฉๅ ถไป็ๆๅกๆไพๆน๏ผๅฆๅๆ้ฎๅฐๆ ๆณๅฑ็คบ",
not_support_theme: "ๅฝๅไธป้ขไธๆฏๆๆทปๅ ใๅฟซๆทๆฏไปๆ้ฎใ",
more_button: "ๆดๅคไปๆฌพๆนๅผ",
}
};
const arSA = {
ec: {
not_active_channel: "Please activate {channelName} on B Admin or select another provider in theใExpress checkout buttonใ settings, otherwise it will not display.",
not_support_theme: "This Theme doesn't support addingใExpress checkout buttonใ",
more_button: "ุงูู ุฒูุฏ ู ู ุฎูุงุฑุงุช ุงูุฏูุน",
}
};
const deDE = {
ec: {
not_active_channel: "Please activate {channelName} on B Admin or select another provider in theใExpress checkout buttonใ settings, otherwise it will not display.",
not_support_theme: "This Theme doesn't support addingใExpress checkout buttonใ",
more_button: "Weitere Bezahlmรถglichkeiten",
}
};
const esES = {
ec: {
not_active_channel: "Please activate {channelName} on B Admin or select another provider in theใExpress checkout buttonใ settings, otherwise it will not display.",
not_support_theme: "This Theme doesn't support addingใExpress checkout buttonใ",
more_button: "Mรกs opciones de pago",
}
};
const frFR = {
ec: {
not_active_channel: "Please activate {channelName} on B Admin or select another provider in theใExpress checkout buttonใ settings, otherwise it will not display.",
not_support_theme: "This Theme doesn't support addingใExpress checkout buttonใ",
more_button: "Plus d'options de paiement",
}
};
const idID = {
ec: {
not_active_channel: "Please activate {channelName} on B Admin or select another provider in theใExpress checkout buttonใ settings, otherwise it will not display.",
not_support_theme: "This Theme doesn't support addingใExpress checkout buttonใ",
more_button: "Opsi pembayaran lainnya",
}
};
const itIT = {
ec: {
not_active_channel: "Please activate {channelName} on B Admin or select another provider in theใExpress checkout buttonใ settings, otherwise it will not display.",
not_support_theme: "This Theme doesn't support addingใExpress checkout buttonใ",
more_button: "Altre opzioni di pagamento",
}
};
const jaJP = {
ec: {
not_active_channel: "Please activate {channelName} on B Admin or select another provider in theใExpress checkout buttonใ settings, otherwise it will not display.",
not_support_theme: "This Theme doesn't support addingใExpress checkout buttonใ",
more_button: "ใใฎไปใฎๆฏๆใใชใใทใงใณ",
}
};
const koKR = {
ec: {
not_active_channel: "Please activate {channelName} on B Admin or select another provider in theใExpress checkout buttonใ settings, otherwise it will not display.",
not_support_theme: "This Theme doesn't support addingใExpress checkout buttonใ",
more_button: "๋ ๋ง์ ๊ฒฐ์ ์ต์ ",
}
};
const enUS = {
ec: {
not_active_channel: "Please activate {channelName} on B Admin or select another provider in theใExpress checkout buttonใ settings, otherwise it will not display.",
not_support_theme: "This Theme doesn't support addingใExpress checkout buttonใ",
more_button: "More payment options",
skeleton_layer_tips_title: "Express Checkout Button",
skeleton_layer_tips_content: "Please click theใExpress checkout buttonใon the block list๏ผthen you could enable the payment option you want to display in settings.",
mock_tips: "Whether the Express checkout button is displayed also depends on the browser used by the buyer and the currency and amount of the product.",
not_find_form_tips: "Express Checkout Button could only be added to Product details block.",
}
};
const nlNL = {
ec: {
not_active_channel: "Please activate {channelName} on B Admin or select another provider in theใExpress checkout buttonใ settings, otherwise it will not display.",
not_support_theme: "This Theme doesn't support addingใExpress checkout buttonใ",
more_button: "Meer betalingsmogelijkheden",
}
};
const plPL = {
ec: {
not_active_channel: "Please activate {channelName} on B Admin or select another provider in theใExpress checkout buttonใ settings, otherwise it will not display.",
not_support_theme: "This Theme doesn't support addingใExpress checkout buttonใ",
more_button: "Wiฤcej Opcji Pลatnoลci",
}
};
const ptPT = {
ec: {
not_active_channel: "Please activate {channelName} on B Admin or select another provider in theใExpress checkout buttonใ settings, otherwise it will not display.",
not_support_theme: "This Theme doesn't support addingใExpress checkout buttonใ",
more_button: "Mais opรงรตes de pagamento",
}
};
const ruRU = {
ec: {
not_active_channel: "Please activate {channelName} on B Admin or select another provider in theใExpress checkout buttonใ settings, otherwise it will not display.",
not_support_theme: "This Theme doesn't support addingใExpress checkout buttonใ",
more_button: "ะััะณะธะต ะฒะฐัะธะฐะฝัั ะพะฟะปะฐัั",
}
};
const thTH = {
ec: {
not_active_channel: "Please activate {channelName} on B Admin or select another provider in theใExpress checkout buttonใ settings, otherwise it will not display.",
not_support_theme: "This Theme doesn't support addingใExpress checkout buttonใ",
more_button: "เธเธฑเธงเนเธฅเธทเธญเธเธเธฒเธฃเธเธณเธฃเธฐเนเธเธดเธเนเธเธดเนเธกเนเธเธดเธก",
}
};
window.payment_plugin_message = {
getPluginI18nMessages,
"zh-CN": zhCN,
"zh-TW": zhTW,
"ar-SA": arSA,
"de-DE": deDE,
"es-ES": esES,
"fr-FR": frFR,
"id-ID": idID,
"it-IT": itIT,
"ja-JP": jaJP,
"ko-KR": koKR,
"en-US": enUS,
"nl-NL": nlNL,
"pl-PL": plPL,
"pt-PT": ptPT,
"ru-RU": ruRU,
"th-TH": thTH,
}
document.dispatchEvent(new CustomEvent('payment_plugin_message_reader'));