I have checked the german locale for uploadcare-widget and it is missing the preview for “CROP”, can you add this one to german locale
I am also added the below code for uploading the image but for some reason german locale value is resetting for English locale titlle CROP “Crop and add this image” and buttons: remove and done is
export function* updateUploadcareLocale({ locale }) {
const uploadcare = (yield call(importUploadcare)).default;
const uploadCareLocale = getLanguage(locale);
if(uploadCareLocale === 'de'){
uploadcare.plugin((uploadcareWidget) => {
uploadcareWidget.locale.rebuild({
locale: 'de',
translations: {
buttons: {
cancel: 'Abbrechen',
remove: 'Löschen',
choose: {
files: {
one: 'Datei auswählen',
other: 'Dateien auswählen'
},
images: {
one: 'Bild auswählen',
other: 'Bilder auswählen'
}
}
}
} });
});
yield put(updateUploadcareLocaleComplete());
}else{cons
uploadcare.plugin((uploadcareWidget) => {
uploadcareWidget.locale.rebuild({ locale: getLanguage(locale) });
});
yield put(updateUploadcareLocaleComplete());
}
}