Skip to content

Commit cc9faf8

Browse files
committed
fix: add missing translations
1 parent 07f35bd commit cc9faf8

1 file changed

Lines changed: 9 additions & 9 deletions

File tree

custom/VisionAction.vue

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@
55
</div>
66
<p class="text-justify max-h-[18px] truncate max-w-[60vw] md:max-w-none">{{ props.meta.actionName }}</p>
77
</div>
8-
<Dialog
8+
<Dialog
99
ref="confirmDialog"
10-
header="Bulk AI Generation"
10+
:header="t('Bulk AI Generation')"
1111
class="[scrollbar-gutter:stable] max-w-full h-fit"
1212
:beforeCancelFunction="handleBeforeCancel"
1313
:class="popupMode === 'generation' ? 'lg:w-auto !lg:max-w-[1600px]'
@@ -234,7 +234,7 @@
234234
dark:focus:border-gray-700
235235
focus:outline-none
236236
focus:border-gray-200"
237-
placeholder="Enter prompt instructions..."
237+
:placeholder="t('Enter prompt instructions...')"
238238
></Textarea>
239239
</div>
240240

@@ -1069,17 +1069,17 @@ function applyJobResult(record: RecordState, job: any, actionType: GenerationAct
10691069
}
10701070
10711071
function applyJobFailure(record: RecordState, job: any, actionType: GenerationAction) {
1072-
registerGenerationFailure(record, actionType, job?.error || 'Unknown error');
1072+
registerGenerationFailure(record, actionType, job?.error || t('Unknown error'));
10731073
if (actionType === 'generate_images') {
10741074
record.imageGenerationFailed = true;
1075-
record.imageGenerationErrorMessage = job?.error || 'Unknown error';
1075+
record.imageGenerationErrorMessage = job?.error || t('Unknown error');
10761076
} else if (actionType === 'analyze') {
10771077
for (const field of Object.keys(props.meta.outputFieldsForAnalizeFromImages || {})) {
1078-
record.imageToTextErrorMessages[props.meta.outputFieldsForAnalizeFromImages[field]] = job?.error || 'Unknown error';
1078+
record.imageToTextErrorMessages[props.meta.outputFieldsForAnalizeFromImages[field]] = job?.error || t('Unknown error');
10791079
}
10801080
} else if (actionType === 'analyze_no_images') {
10811081
for (const field of Object.keys(props.meta.outputPlainFields || {})) {
1082-
record.textToTextErrorMessages[props.meta.outputPlainFields[field]] = job?.error || 'Unknown error';
1082+
record.textToTextErrorMessages[props.meta.outputPlainFields[field]] = job?.error || t('Unknown error');
10831083
}
10841084
}
10851085
touchRecords();
@@ -1427,12 +1427,12 @@ async function uploadImage(imgBlob, id, fieldName) {
14271427
} catch (error) {
14281428
console.error('Error uploading file:', error);
14291429
adminforth.alert({
1430-
message: 'Sorry but the file was not be uploaded. Please try again.',
1430+
message: t('Sorry but the file was not be uploaded. Please try again.'),
14311431
variant: 'danger'
14321432
});
14331433
14341434
isError.value = true;
1435-
errorMessage.value = `Failed to upload images. Please, try to re-run the action.`;
1435+
errorMessage.value = t('Failed to upload images. Please, try to re-run the action.');
14361436
return null;
14371437
}
14381438
}

0 commit comments

Comments
 (0)