You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if (allowedExtensions.length>0&&!allowedExtensions.includes(extension)) {
193
195
window.adminforth.alert({
194
-
message:`Sorry but the file type ${extension} is not allowed. Please upload a file with one of the following extensions: ${allowedExtensionsLabel.value}`,
196
+
message:t('Sorry but the file type {extension} is not allowed. Please upload a file with one of the following extensions: {allowedExtensionsLabel}', {
if (props.meta.maxFileSize&& size >props.meta.maxFileSize) {
202
207
window.adminforth.alert({
203
-
message:`Sorry but the file size ${humanifySize(size)} is too large. Please upload a file with a maximum size of ${humanifySize(props.meta.maxFileSize)}`,
208
+
message:t('Sorry but the file size {size} is too large. Please upload a file with a maximum size of {maxFileSize}', {
209
+
size:humanifySize(size),
210
+
maxFileSize:humanifySize(props.meta.maxFileSize),
211
+
}),
204
212
variant:'danger'
205
213
});
206
214
return;
207
215
}
208
216
209
-
emit('update:inValidity', 'Upload in progress...');
217
+
emit('update:inValidity', t('Upload in progress...'));
0 commit comments