Skip to content

Commit 1f965c1

Browse files
Merge pull request #1889 from dev-protocol/patch-loc-1
add: i18n updation on component mount
2 parents d36ab8e + 84e30af commit 1f965c1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/ui/components/Checkout/ModalCheckout.vue

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ const eoa = ref(props.eoa)
2727
const imageRef = useTemplateRef(`imageRef`)
2828
2929
const i18nBase = i18nFactory(Strings)
30-
let i18n = i18nBase(['en'])
30+
let i18n = ref<ReturnType<typeof i18nBase>>(i18nBase(['en']))
3131
3232
const passportPageUrl = computed(() =>
3333
window.location.hostname.includes('prerelease.clubs.place')
@@ -46,6 +46,7 @@ const onClickPassport = async () => {
4646
}
4747
4848
onMounted(async () => {
49+
i18n.value = i18nBase(navigator.languages)
4950
if (cronCalling.value === undefined) {
5051
cronCalling.value = ((fb) =>
5152
fetch('/api/cron/assets')

0 commit comments

Comments
 (0)