Skip to content

Commit

Permalink
fix: invalid key used for watching locale changes
Browse files Browse the repository at this point in the history
  • Loading branch information
ayZagen committed Dec 4, 2024
1 parent 0da07fd commit 46e3a49
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ui/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export function createWidget(container: Element | string,
widget.config.globalProperties.$i18n = inject.i18n
widget.config.globalProperties.settings = settings

watch(() => settings.locale.selectedLocale, (locale,) => {
watch(translator.localeRef, (locale) => {
if (locale) {
translator.locale = locale
}
Expand Down

0 comments on commit 46e3a49

Please sign in to comment.