summaryrefslogtreecommitdiff
path: root/src/client/scripts/select-file.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/client/scripts/select-file.ts')
-rw-r--r--src/client/scripts/select-file.ts14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/client/scripts/select-file.ts b/src/client/scripts/select-file.ts
index 80f9d25a2e..c083e1ef88 100644
--- a/src/client/scripts/select-file.ts
+++ b/src/client/scripts/select-file.ts
@@ -39,9 +39,9 @@ export function selectFile(src: any, label: string | null, multiple = false) {
const chooseFileFromUrl = () => {
os.dialog({
- title: i18n.global.t('uploadFromUrl'),
+ title: i18n.locale.uploadFromUrl,
input: {
- placeholder: i18n.global.t('uploadFromUrlDescription')
+ placeholder: i18n.locale.uploadFromUrlDescription
}
}).then(({ canceled, result: url }) => {
if (canceled) return;
@@ -62,8 +62,8 @@ export function selectFile(src: any, label: string | null, multiple = false) {
});
os.dialog({
- title: i18n.global.t('uploadFromUrlRequested'),
- text: i18n.global.t('uploadFromUrlMayTakeTime')
+ title: i18n.locale.uploadFromUrlRequested,
+ text: i18n.locale.uploadFromUrlMayTakeTime
});
});
};
@@ -72,15 +72,15 @@ export function selectFile(src: any, label: string | null, multiple = false) {
text: label,
type: 'label'
} : undefined, {
- text: i18n.global.t('upload'),
+ text: i18n.locale.upload,
icon: faUpload,
action: chooseFileFromPc
}, {
- text: i18n.global.t('fromDrive'),
+ text: i18n.locale.fromDrive,
icon: faCloud,
action: chooseFileFromDrive
}, {
- text: i18n.global.t('fromUrl'),
+ text: i18n.locale.fromUrl,
icon: faLink,
action: chooseFileFromUrl
}], src);