diff options
author | skjnldsv <skjnldsv@protonmail.com> | 2024-07-16 18:01:55 +0200 |
---|---|---|
committer | skjnldsv <skjnldsv@protonmail.com> | 2024-07-18 19:47:11 +0200 |
commit | 018e4c001de391484d7c0433cc092b0fbd8866c2 (patch) | |
tree | d9f341704807612f973d85962a131cc13150463b /apps/files_sharing/src/components/NewFileRequestDialog/NewFileRequestDialogIntro.vue | |
parent | 365b647b60d9380bbbd88fb00984b294db9062c2 (diff) | |
download | nextcloud-server-018e4c001de391484d7c0433cc092b0fbd8866c2.tar.gz nextcloud-server-018e4c001de391484d7c0433cc092b0fbd8866c2.zip |
fix(files_sharing): file request use l10n `t` and `n` aliases
Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
Diffstat (limited to 'apps/files_sharing/src/components/NewFileRequestDialog/NewFileRequestDialogIntro.vue')
-rw-r--r-- | apps/files_sharing/src/components/NewFileRequestDialog/NewFileRequestDialogIntro.vue | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/apps/files_sharing/src/components/NewFileRequestDialog/NewFileRequestDialogIntro.vue b/apps/files_sharing/src/components/NewFileRequestDialog/NewFileRequestDialogIntro.vue index c995cdc2442..231ed94c460 100644 --- a/apps/files_sharing/src/components/NewFileRequestDialog/NewFileRequestDialogIntro.vue +++ b/apps/files_sharing/src/components/NewFileRequestDialog/NewFileRequestDialogIntro.vue @@ -66,7 +66,7 @@ import type { Folder, Node } from '@nextcloud/files' import { defineComponent } from 'vue' import { getFilePickerBuilder } from '@nextcloud/dialogs' -import { translate } from '@nextcloud/l10n' +import { t } from '@nextcloud/l10n' import IconFolder from 'vue-material-design-icons/Folder.vue' import NcTextArea from '@nextcloud/vue/dist/Components/NcTextArea.js' @@ -113,17 +113,17 @@ export default defineComponent({ setup() { return { - t: translate, + t, } }, methods: { onPickDestination() { - const filepicker = getFilePickerBuilder(this.t('files_sharing', 'Select a destination')) + const filepicker = getFilePickerBuilder(t('files_sharing', 'Select a destination')) .addMimeTypeFilter('httpd/unix-directory') .allowDirectories(true) .addButton({ - label: this.t('files_sharing', 'Select'), + label: t('files_sharing', 'Select'), callback: this.onPickedDestination, }) .setFilter(node => node.path !== '/') |