This commit is contained in:
syuilo
2020-12-26 10:51:00 +09:00
parent 5a8cc7851b
commit 00f3a1e1ec
8 changed files with 35 additions and 35 deletions

View File

@@ -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);