feature/fix-vue-i18n-9.2.31 #1994
|
@ -48,7 +48,7 @@ const keyboardShortcutsActive = computed(() => store.state.keyboardShortcutsActi
|
|||
const authUser = computed(() => store.getters['auth/authUser'])
|
||||
const authLinkShare = computed(() => store.getters['auth/authLinkShare'])
|
||||
|
||||
const {t} = useI18n()
|
||||
const {t} = useI18n({useScope: 'global'})
|
||||
|
||||
// setup account deletion verification
|
||||
const accountDeletionConfirm = useRouteQuery('accountDeletionConfirm') as Ref<null | string>
|
||||
|
|
|
@ -83,7 +83,7 @@ import BaseButton from '@/components/base/BaseButton.vue'
|
|||
import DatemathHelp from '@/components/date/datemathHelp.vue'
|
||||
|
||||
const store = useStore()
|
||||
const {t} = useI18n()
|
||||
const {t} = useI18n({useScope: 'global'})
|
||||
|
||||
const emit = defineEmits(['dateChanged'])
|
||||
|
||||
|
|
|
@ -70,7 +70,7 @@ watch(() => props.configureOpen, (value) => {
|
|||
}, {immediate: true})
|
||||
|
||||
|
||||
const {t} = useI18n()
|
||||
const {t} = useI18n({useScope: 'global'})
|
||||
|
||||
const errorMsg = ref('')
|
||||
const successMsg = ref('')
|
||||
|
|
|
@ -38,7 +38,7 @@ import {useTitle} from '@/composables/useTitle'
|
|||
|
||||
const route = useRoute()
|
||||
const store = useStore()
|
||||
const {t} = useI18n()
|
||||
const {t} = useI18n({useScope: 'global'})
|
||||
|
||||
const motd = computed(() => store.state.config.motd)
|
||||
|
||||
|
|
|
@ -51,7 +51,7 @@ const emit = defineEmits(['change'])
|
|||
|
||||
const subscriptionService = shallowRef(new SubscriptionService())
|
||||
|
||||
const {t} = useI18n()
|
||||
const {t} = useI18n({useScope: 'global'})
|
||||
const tooltipText = computed(() => {
|
||||
if (disabled.value) {
|
||||
return t('task.subscription.subscribedThroughParent', {
|
||||
|
|
|
@ -195,7 +195,7 @@ const props = defineProps({
|
|||
},
|
||||
})
|
||||
|
||||
const {t} = useI18n()
|
||||
const {t} = useI18n({useScope: 'global'})
|
||||
|
||||
const linkShares = ref([])
|
||||
const linkShareService = shallowReactive(new LinkShareService())
|
||||
|
|
|
@ -179,7 +179,7 @@ const props = defineProps({
|
|||
},
|
||||
})
|
||||
|
||||
const {t} = useI18n()
|
||||
const {t} = useI18n({useScope: 'global'})
|
||||
|
||||
// This user service is either a userNamespaceService or a userListService, depending on the type we are using
|
||||
let stuffService: ShallowReactive<UserNamespaceService | UserListService | TeamListService | TeamNamespaceService>
|
||||
|
|
|
@ -133,7 +133,7 @@ const emit = defineEmits(['taskAdded'])
|
|||
const newTaskTitle = ref('')
|
||||
const newTaskInput = useAutoHeightTextarea(newTaskTitle)
|
||||
|
||||
const {t} = useI18n()
|
||||
const {t} = useI18n({useScope: 'global'})
|
||||
const store = useStore()
|
||||
|
||||
const taskService = shallowReactive(new TaskService())
|
||||
|
|
|
@ -90,7 +90,7 @@ import ColorPicker from '../input/colorPicker.vue'
|
|||
|
||||
import {success} from '@/message'
|
||||
|
||||
const {t} = useI18n()
|
||||
const {t} = useI18n({useScope: 'global'})
|
||||
const router = useRouter()
|
||||
|
||||
const props = defineProps({
|
||||
|
|
|
@ -34,7 +34,7 @@ const checklistCircleDone = computed(() => {
|
|||
return ((100 - progress) / 100) * c
|
||||
})
|
||||
|
||||
const {t} = useI18n()
|
||||
const {t} = useI18n({useScope: 'global'})
|
||||
const label = computed(() => {
|
||||
return checklist.value.total === checklist.value.checked
|
||||
? t('task.checklistAllDone', checklist.value)
|
||||
|
|
|
@ -173,7 +173,7 @@ const props = defineProps({
|
|||
},
|
||||
})
|
||||
|
||||
const {t} = useI18n()
|
||||
const {t} = useI18n({useScope: 'global'})
|
||||
const store = useStore()
|
||||
|
||||
const comments = ref<TaskCommentModel[]>([])
|
||||
|
|
|
@ -54,7 +54,7 @@ const props = defineProps({
|
|||
})
|
||||
const emit = defineEmits(['update:modelValue'])
|
||||
|
||||
const {t} = useI18n()
|
||||
const {t} = useI18n({useScope: 'global'})
|
||||
const store = useStore()
|
||||
|
||||
const taskService = shallowReactive(new TaskService())
|
||||
|
|
|
@ -60,7 +60,7 @@ const props = defineProps({
|
|||
const emit = defineEmits(['update:modelValue'])
|
||||
|
||||
const store = useStore()
|
||||
const {t} = useI18n()
|
||||
const {t} = useI18n({useScope: 'global'})
|
||||
|
||||
const listUserService = shallowReactive(new ListUserService())
|
||||
const foundUsers = ref([])
|
||||
|
|
|
@ -67,7 +67,7 @@ const props = defineProps({
|
|||
const emit = defineEmits(['update:modelValue', 'change'])
|
||||
|
||||
const store = useStore()
|
||||
const {t} = useI18n()
|
||||
const {t} = useI18n({useScope: 'global'})
|
||||
|
||||
const labelTaskService = shallowReactive(new LabelTaskService())
|
||||
const labels = ref<LabelModel[]>([])
|
||||
|
|
|
@ -36,7 +36,7 @@ const props = defineProps({
|
|||
const emit = defineEmits(['update:modelValue'])
|
||||
|
||||
const store = useStore()
|
||||
const {t} = useI18n()
|
||||
const {t} = useI18n({useScope: 'global'})
|
||||
|
||||
const list = reactive<ListModel>(new ListModel())
|
||||
|
||||
|
|
|
@ -2,7 +2,7 @@ import {error} from '@/message'
|
|||
import {useI18n} from 'vue-i18n'
|
||||
|
||||
export function useCopyToClipboard() {
|
||||
const {t} = useI18n()
|
||||
const {t} = useI18n({useScope: 'global'})
|
||||
|
||||
return async (text: string) => {
|
||||
try {
|
||||
|
|
|
@ -21,7 +21,7 @@ import SavedFilterModel from '@/models/savedFilter'
|
|||
import SavedFilterService from '@/services/savedFilter'
|
||||
import {getSavedFilterIdFromListId} from '@/helpers/savedFilter'
|
||||
|
||||
const { t } = useI18n()
|
||||
const { t } = useI18n({useScope: 'global'})
|
||||
const router = useRouter()
|
||||
const route = useRoute()
|
||||
|
||||
|
|
|
@ -68,7 +68,7 @@ import SavedFilterService from '@/services/savedFilter'
|
|||
import {objectToSnakeCase} from '@/helpers/case'
|
||||
import {getSavedFilterIdFromListId} from '@/helpers/savedFilter'
|
||||
|
||||
const { t } = useI18n()
|
||||
const { t } = useI18n({useScope: 'global'})
|
||||
|
||||
function useSavedFilter(listId) {
|
||||
const filterService = shallowRef(new SavedFilterService())
|
||||
|
|
|
@ -91,7 +91,7 @@ const now = ref(new Date())
|
|||
const dateFrom = ref(new Date((new Date()).setDate(now.value.getDate() - 15)))
|
||||
const dateTo = ref(new Date((new Date()).setDate(now.value.getDate() + 30)))
|
||||
|
||||
const {t} = useI18n()
|
||||
const {t} = useI18n({useScope: 'global'})
|
||||
const store = useStore()
|
||||
const flatPickerConfig = computed(() => ({
|
||||
altFormat: t('date.altFormatShort'),
|
||||
|
|
|
@ -45,7 +45,7 @@ import ColorPicker from '@/components/input/colorPicker.vue'
|
|||
import { success } from '@/message'
|
||||
import { useTitle } from '@/composables/useTitle'
|
||||
|
||||
const {t} = useI18n()
|
||||
const {t} = useI18n({useScope: 'global'})
|
||||
const store = useStore()
|
||||
const router = useRouter()
|
||||
const route = useRoute()
|
||||
|
|
|
@ -27,7 +27,7 @@ import ListService from '@/services/list'
|
|||
import { success } from '@/message'
|
||||
import { useTitle } from '@/composables/useTitle'
|
||||
|
||||
const {t} = useI18n()
|
||||
const {t} = useI18n({useScope: 'global'})
|
||||
const store = useStore()
|
||||
const router = useRouter()
|
||||
const route = useRoute()
|
||||
|
|
|
@ -36,7 +36,7 @@ import {success} from '@/message'
|
|||
import TaskCollectionService from '@/services/taskCollection'
|
||||
import Loading from '@/components/misc/loading.vue'
|
||||
|
||||
const {t} = useI18n()
|
||||
const {t} = useI18n({useScope: 'global'})
|
||||
const store = useStore()
|
||||
const route = useRoute()
|
||||
const router = useRouter()
|
||||
|
|
|
@ -37,7 +37,7 @@ import { useTitle } from '@/composables/useTitle'
|
|||
import { useNameSpaceSearch } from '@/composables/useNamespaceSearch'
|
||||
|
||||
|
||||
const { t } = useI18n()
|
||||
const { t } = useI18n({useScope: 'global'})
|
||||
useTitle(() => t('list.duplicate.title'))
|
||||
|
||||
|
||||
|
|
|
@ -45,7 +45,7 @@ import CreateEdit from '@/components/misc/create-edit.vue'
|
|||
import LinkSharing from '@/components/sharing/linkSharing.vue'
|
||||
import userTeam from '@/components/sharing/userTeam.vue'
|
||||
|
||||
const {t} = useI18n()
|
||||
const {t} = useI18n({useScope: 'global'})
|
||||
|
||||
const list = ref()
|
||||
const title = computed(() => list.value?.title
|
||||
|
|
|
@ -28,7 +28,7 @@ import {useStore} from 'vuex'
|
|||
import {MIGRATORS} from './migrators'
|
||||
import {useTitle} from '@/composables/useTitle'
|
||||
|
||||
const {t} = useI18n()
|
||||
const {t} = useI18n({useScope: 'global'})
|
||||
const store = useStore()
|
||||
|
||||
useTitle(() => t('migrate.title'))
|
||||
|
|
|
@ -41,7 +41,7 @@ import NamespaceModel from '@/models/namespace'
|
|||
import CreateEdit from '@/components/misc/create-edit.vue'
|
||||
import manageSharing from '@/components/sharing/userTeam.vue'
|
||||
|
||||
const {t} = useI18n()
|
||||
const {t} = useI18n({useScope: 'global'})
|
||||
|
||||
const namespace = ref()
|
||||
|
||||
|
|
|
@ -41,7 +41,7 @@ import {useTitle} from '@vueuse/core'
|
|||
|
||||
import Message from '@/components/misc/message.vue'
|
||||
|
||||
const {t} = useI18n()
|
||||
const {t} = useI18n({useScope: 'global'})
|
||||
useTitle(t('sharing.authenticating'))
|
||||
|
||||
function useAuth() {
|
||||
|
|
|
@ -64,7 +64,7 @@ import LlamaCool from '@/assets/llama-cool.svg?component'
|
|||
const store = useStore()
|
||||
const route = useRoute()
|
||||
const router = useRouter()
|
||||
const {t} = useI18n()
|
||||
const {t} = useI18n({useScope: 'global'})
|
||||
|
||||
const tasks = ref<TaskModel[]>([])
|
||||
const showNothingToDo = ref<boolean>(false)
|
||||
|
|
|
@ -183,7 +183,7 @@ import {success} from '@/message'
|
|||
const store = useStore()
|
||||
const route = useRoute()
|
||||
const router = useRouter()
|
||||
const {t} = useI18n()
|
||||
const {t} = useI18n({useScope: 'global'})
|
||||
|
||||
const userIsAdmin = computed(() => {
|
||||
return (
|
||||
|
|
|
@ -32,7 +32,7 @@ import { useI18n } from 'vue-i18n'
|
|||
import TeamService from '@/services/team'
|
||||
import { useTitle } from '@/composables/useTitle'
|
||||
|
||||
const { t } = useI18n()
|
||||
const { t } = useI18n({useScope: 'global'})
|
||||
useTitle(() => t('team.title'))
|
||||
|
||||
const teams = ref([])
|
||||
|
|
|
@ -66,7 +66,7 @@ import PasswordResetModel from '@/models/passwordReset'
|
|||
import PasswordResetService from '@/services/passwordReset'
|
||||
import Message from '@/components/misc/message.vue'
|
||||
|
||||
const {t} = useI18n()
|
||||
const {t} = useI18n({useScope: 'global'})
|
||||
|
||||
const credentials = reactive({
|
||||
password: '',
|
||||
|
|
|
@ -23,7 +23,7 @@ import { store } from '@/store'
|
|||
import { useI18n } from 'vue-i18n'
|
||||
import { useTitle } from '@/composables/useTitle'
|
||||
|
||||
const { t } = useI18n()
|
||||
const { t } = useI18n({useScope: 'global'})
|
||||
useTitle(() => t('user.settings.title'))
|
||||
|
||||
const totpEnabled = computed(() => store.state.config.totpEnabled)
|
||||
|
|
|
@ -77,7 +77,7 @@ import AvatarModel from '@/models/avatar'
|
|||
import { useTitle } from '@/composables/useTitle'
|
||||
import { success } from '@/message'
|
||||
|
||||
const {t} = useI18n()
|
||||
const {t} = useI18n({useScope: 'global'})
|
||||
const store = useStore()
|
||||
|
||||
const AVATAR_PROVIDERS = {
|
||||
|
|
|
@ -81,7 +81,7 @@ import CaldavTokenModel from '@/models/caldavToken'
|
|||
|
||||
const copy = useCopyToClipboard()
|
||||
|
||||
const {t} = useI18n()
|
||||
const {t} = useI18n({useScope: 'global'})
|
||||
useTitle(() => `${t('user.settings.caldav.title')} - ${t('user.settings.title')}`)
|
||||
|
||||
const service = shallowReactive(new CaldavTokenService())
|
||||
|
|
|
@ -55,7 +55,7 @@ import DataExportService from '@/services/dataExport'
|
|||
import { useTitle } from '@/composables/useTitle'
|
||||
import {success} from '@/message'
|
||||
|
||||
const {t} = useI18n()
|
||||
const {t} = useI18n({useScope: 'global'})
|
||||
const store = useStore()
|
||||
|
||||
useTitle(() => `${t('user.export.title')} - ${t('user.settings.title')}`)
|
||||
|
|
|
@ -100,7 +100,7 @@ import {parseDateOrNull} from '@/helpers/parseDateOrNull'
|
|||
import {useTitle} from '@/composables/useTitle'
|
||||
import {success} from '@/message'
|
||||
|
||||
const {t} = useI18n()
|
||||
const {t} = useI18n({useScope: 'global'})
|
||||
useTitle(() => `${t('user.deletion.title')} - ${t('user.settings.title')}`)
|
||||
|
||||
const accountDeleteService = shallowReactive(new AccountDeleteService())
|
||||
|
|
|
@ -53,7 +53,7 @@ import EmailUpdateModel from '@/models/emailUpdate'
|
|||
import {success} from '@/message'
|
||||
import {useTitle} from '@/composables/useTitle'
|
||||
|
||||
const {t} = useI18n()
|
||||
const {t} = useI18n({useScope: 'global'})
|
||||
useTitle(() => `${t('user.settings.updateEmailTitle')} - ${t('user.settings.title')}`)
|
||||
|
||||
const store = useStore()
|
||||
|
|
|
@ -159,13 +159,13 @@ import {AuthenticatedHTTPFactory} from '@/http-common'
|
|||
import {useColorScheme} from '@/composables/useColorScheme'
|
||||
import { useTitle } from '@/composables/useTitle'
|
||||
|
||||
const {t} = useI18n()
|
||||
const {t} = useI18n({useScope: 'global'})
|
||||
useTitle(() => `${t('user.settings.general.title')} - ${t('user.settings.title')}`)
|
||||
|
||||
const DEFAULT_LIST_ID = 0
|
||||
|
||||
function useColorSchemeSetting() {
|
||||
const {t} = useI18n()
|
||||
const {t} = useI18n({useScope: 'global'})
|
||||
const colorSchemeSettings = computed(() => ({
|
||||
light: t('user.settings.appearance.colorScheme.light'),
|
||||
auto: t('user.settings.appearance.colorScheme.system'),
|
||||
|
|
|
@ -74,7 +74,7 @@ const passwordUpdateService = shallowReactive(new PasswordUpdateService())
|
|||
const passwordUpdate = reactive(new PasswordUpdateModel())
|
||||
const passwordConfirm = ref('')
|
||||
|
||||
const {t} = useI18n()
|
||||
const {t} = useI18n({useScope: 'global'})
|
||||
const store = useStore()
|
||||
useTitle(() => `${t('user.settings.newPasswordTitle')} - ${t('user.settings.title')}`)
|
||||
|
||||
|
|
|
@ -80,7 +80,7 @@ import {success} from '@/message'
|
|||
|
||||
import { useTitle } from '@/composables/useTitle'
|
||||
|
||||
const {t} = useI18n()
|
||||
const {t} = useI18n({useScope: 'global'})
|
||||
useTitle(() => `${t('user.settings.totp.title')} - ${t('user.settings.title')}`)
|
||||
|
||||
|
||||
|
|
Reference in New Issue