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" >

- - Choose your instance - + + Choose your instance +

{ class="ui negative message" >

- - It is not possible to connect to the given URL - + + It is not possible to connect to the given URL +

@@ -98,8 +106,8 @@ const checkAndSwitch = async (url: string) => { @submit.prevent="checkAndSwitch(instanceUrl)" >

@@ -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.

- - To continue, please select the Funkwhale instance you want to connect to. Enter the address directly, or select one of the suggested choices. - + + To continue, please select the Funkwhale instance you want to connect to. Enter the address directly, or select one of the suggested choices. +

- +
{ type="submit" :class="['ui', 'icon', {loading: isLoading}, 'button']" > - - Submit - + + Submit +
@@ -140,9 +154,10 @@ const checkAndSwitch = async (url: string) => { >

- - Suggested choices - + + Suggested choices +