語系切換
html
<button id="locale-en">en</button>
<button id="locale-zh_tw">zh_tw</button>
<button id="locale-ja">ja</button>
<button id="locale-zh_cn">zh_cn</button>
ts
document.getElementById('locale-en').addEventListener('click', () => {
PayNow.updateLocale('en')
})
document.getElementById('locale-zh_tw').addEventListener('click', () => {
PayNow.updateLocale('zh_tw')
})
document.getElementById('locale-ja').addEventListener('click', () => {
PayNow.updateLocale('ja')
})
document.getElementById('locale-zh_cn').addEventListener('click', () => {
PayNow.updateLocale('zh_cn')
})