Snipcart 的 v3 文档提供的以下代码片段似乎没有覆盖其默认文本标签:继续购物
document.addEventListener('snipcart.ready', () => {
Snipcart.api.session.setLanguage('en', {
actions: {
continue_shopping: "Go back to store"
}
});
});
我已将上面的代码段直接放在以下...
<div hidden id="snipcart" data-api-key="[Testing API Key]"></div>
<script src="https://cdn.snipcart.com/themes/v3.0.6/default/snipcart.js"></script>
当我单击激活 Snipcart 的结帐模式时,默认标签Continue shopping仍然存在(而不是Go back to store)。