Skip to content

Commit 965e7ff

Browse files
committed
fix: i18n
1 parent 7f0a34a commit 965e7ff

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

resources/js/app/components/fast-create/form-field.vue

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -236,9 +236,6 @@ export default {
236236
}
237237
},
238238
computed: {
239-
isNumber() {
240-
return this.renderAs === 'number' || (!this.renderAs && this.jsonSchema?.oneOf?.filter(one => one?.type === 'number')?.length > 0);
241-
},
242239
title() {
243240
if (this.renderAs === 'file' || (!this.renderAs && this.field === 'name' && this.abstractType === 'media' && this.isUploadable)) {
244241
return this.t('File');

resources/js/app/components/file-upload/file-upload.vue

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,8 @@ export default {
110110
msgFileUpload: t`File upload`,
111111
msgNoFileSelected: t`No file selected`,
112112
msgReplaceMedia: t`Replace media`,
113+
msgUploading: t`Uploading...`,
114+
msgUploadSucceeded: t`Upload succeeded`,
113115
response: {},
114116
uploadProgressInfo: new Map(),
115117
};
@@ -183,10 +185,10 @@ export default {
183185
async upload() {
184186
try {
185187
this.loading = true;
186-
this.loadingMessage = 'Uploading...';
188+
this.loadingMessage = this.msgUploading;
187189
const result = await this.doUpload();
188190
this.$emit('success', result);
189-
this.loadingMessage = 'Upload succeeded';
191+
this.loadingMessage = this.msgUploadSucceeded;
190192
} catch(e) {
191193
this.$emit('error', e);
192194
} finally {

0 commit comments

Comments
 (0)