* i18n

Resolve #6155

* i18n for drive

* ✌️

* Extract doc

Co-authored-by: syuilo <syuilotan@yahoo.co.jp>
This commit is contained in:
Satsuki Yanagi
2020-03-22 10:51:40 +09:00
committed by GitHub
parent 06c7fe669c
commit 903e93ae01
15 changed files with 111 additions and 112 deletions

View File

@ -263,14 +263,14 @@ export default Vue.extend({
switch (err) {
case 'detected-circular-definition':
this.$root.dialog({
title: this.$t('unable-to-process'),
text: this.$t('circular-reference-detected')
title: this.$t('unableToProcess'),
text: this.$t('circularReferenceFolder')
});
break;
default:
this.$root.dialog({
type: 'error',
text: this.$t('unhandled-error')
text: this.$t('error')
});
}
});
@ -284,9 +284,9 @@ export default Vue.extend({
urlUpload() {
this.$root.dialog({
title: this.$t('url-upload'),
title: this.$t('uploadFromUrl'),
input: {
placeholder: this.$t('url-of-file')
placeholder: this.$t('uploadFromUrlDescription')
}
}).then(({ canceled, result: url }) => {
if (canceled) return;
@ -296,17 +296,17 @@ export default Vue.extend({
});
this.$root.dialog({
title: this.$t('url-upload-requested'),
text: this.$t('may-take-time')
title: this.$t('uploadFromUrlRequested'),
text: this.$t('uploadFromUrlMayTakeTime')
});
});
},
createFolder() {
this.$root.dialog({
title: this.$t('create-folder'),
title: this.$t('createFolder'),
input: {
placeholder: this.$t('folder-name')
placeholder: this.$t('folderName')
}
}).then(({ canceled, result: name }) => {
if (canceled) return;
@ -321,9 +321,9 @@ export default Vue.extend({
renameFolder(folder) {
this.$root.dialog({
title: this.$t('contextmenu.rename-folder'),
title: this.$t('renameFolder'),
input: {
placeholder: this.$t('contextmenu.input-new-folder-name'),
placeholder: this.$t('inputNewFolderName'),
default: folder.name
}
}).then(({ canceled, result: name }) => {
@ -349,14 +349,14 @@ export default Vue.extend({
case 'b0fc8a17-963c-405d-bfbc-859a487295e1':
this.$root.dialog({
type: 'error',
title: this.$t('unable-to-delete'),
text: this.$t('has-child-files-or-folders')
title: this.$t('unableToDelete'),
text: this.$t('hasChildFilesOrFolders')
});
break;
default:
this.$root.dialog({
type: 'error',
text: this.$t('unable-to-delete')
text: this.$t('unableToDelete')
});
}
});