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
+4 -4
View File
@@ -26,7 +26,7 @@ import Upload from './upload'
export default {
name: 'ReplaceDocument',
inject: ['baseFetch'],
inject: ['baseFetch', 't'],
props: {
templateId: {
type: [Number, String],
@@ -56,11 +56,11 @@ export default {
},
message () {
if (this.isLoading) {
return 'Uploading...'
return this.t('uploading_')
} else if (this.isProcessing) {
return 'Processing...'
return this.t('processing_')
} else {
return 'Replace'
return this.t('replace')
}
}
},