diff --git a/front/src/components/SetInstanceModal.vue b/front/src/components/SetInstanceModal.vue index fb2647cac..400e3f7c7 100644 --- a/front/src/components/SetInstanceModal.vue +++ b/front/src/components/SetInstanceModal.vue @@ -5,7 +5,7 @@ import { uniq } from 'lodash-es' import { useVModel } from '@vueuse/core' import { ref, computed, watch, nextTick } from 'vue' import { useStore } from '~/store' -import { useGettext } from 'vue3-gettext' +// import { useGettext } from 'vue3-gettext' interface Props { show: boolean @@ -32,7 +32,10 @@ const suggestedInstances = computed(() => { watch(() => store.state.instance.instanceUrl, () => store.dispatch('instance/fetchSettings')) -const { $pgettext } = useGettext() + +// TODO: replace translation mechanism { $pgettext } with { t } + +// const { $pgettext } = useGettext() const isError = ref(false) const isLoading = ref(false) const checkAndSwitch = async (url: string) => { @@ -45,7 +48,8 @@ const checkAndSwitch = async (url: string) => { show.value = false store.commit('ui/addMessage', { - content: $pgettext('*/Instance/Message', 'You are now using the Funkwhale instance at %{ url }', { url: instanceUrl }), + content: 'You are now using the Funkwhale instance at %{ url }', + // $pgettext('*/Instance/Message', 'You are now using the Funkwhale instance at %{ url }', { url: instanceUrl }), date: new Date() }) @@ -65,9 +69,10 @@ const checkAndSwitch = async (url: string) => { @update:show="isError = false" >
@@ -109,12 +117,17 @@ const checkAndSwitch = async (url: string) => { >%{ hostname } . If you continue, you will be disconnected from your current instance and all your local data will be deleted.
-