add builder i18n

This commit is contained in:
Pete Matsyburka
2024-01-04 01:05:36 +02:00
parent 6f1e104067
commit 2124965996
12 changed files with 146 additions and 68 deletions
+6 -6
View File
@@ -29,7 +29,7 @@
{{ message }}
</div>
<div class="text-sm">
<span class="font-medium">Click to upload</span> or drag and drop files
<span class="font-medium">{{ t('click_to_upload') }}</span> {{ t('or_drag_and_drop_files') }}
</div>
</div>
</div>
@@ -61,7 +61,7 @@ export default {
IconCloudUpload,
IconInnerShadowTop
},
inject: ['baseFetch'],
inject: ['baseFetch', 't'],
props: {
templateId: {
type: [Number, String],
@@ -91,13 +91,13 @@ export default {
},
message () {
if (this.isLoading) {
return 'Uploading...'
return this.t('uploading')
} else if (this.isProcessing) {
return 'Processing...'
return this.t('processing_')
} else if (this.acceptFileTypes === 'image/*, application/pdf') {
return 'Add PDF documents or images'
return this.t('add_pdf_documents_or_images')
} else {
return 'Add documents or images'
return this.t('add_documents_or_images')
}
}
},