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
Is your feature request related to a problem?
I’m currently using react-filerobot-image-editor in my project and encountering an issue with applying custom translations for the Uyghur language. Despite passing the translations object via the translations prop, the UI remains in English.
This is frustrating because I need to localize the UI for Uyghur-speaking users, and I’ve verified that the translation keys match the expected structure. I’ve tried various approaches without success.
I’d like the react-filerobot-image-editor to fully support custom translations via the translations prop. The expected behavior is that when a valid translations object is passed, the UI should reflect the provided translations instead of the default English text.
Describe alternatives you’ve considered
1. Passing translations directly as props:
I tried passing the translations directly to the FilerobotImageEditor component.
2. Applying translations through a configuration object:
I also tried adding the translations in a config object, but the issue persists.
3. Cache Clearing & Version Updates:
Cleared cache, reinstalled packages, and updated to the latest version of react-filerobot-image-editor, but no changes were observed.
Is your feature request related to a problem?
I’m currently using react-filerobot-image-editor in my project and encountering an issue with applying custom translations for the Uyghur language. Despite passing the translations object via the translations prop, the UI remains in English.
This is frustrating because I need to localize the UI for Uyghur-speaking users, and I’ve verified that the translation keys match the expected structure. I’ve tried various approaches without success.
I’d like the react-filerobot-image-editor to fully support custom translations via the translations prop. The expected behavior is that when a valid translations object is passed, the UI should reflect the provided translations instead of the default English text.
Describe alternatives you’ve considered
1. Passing translations directly as props:
I tried passing the translations directly to the FilerobotImageEditor component.
<FilerobotImageEditor
source={imageUrl}
translations={UYGHUR_TRANSLATIONS}
onSave={(editedImageObject) => onSave(editedImageObject.imageBase64)}
onClose={onClose}
defaultTabId={TABS.ADJUST}
defaultToolId={TOOLS.CROP}
/>
I also tried adding the translations in a config object, but the issue persists.
3. Cache Clearing & Version Updates:
Cleared cache, reinstalled packages, and updated to the latest version of react-filerobot-image-editor, but no changes were observed.
Additional context
Here’s an example of my translations file:
export const UYGHUR_TRANSLATIONS = {
toolbar: {
FINETUNE: 'تەڭشەك',
FILTERS: 'سۈزگۈچلەر',
ADJUST: 'تەڭشەش',
WATERMARK: 'بەلگە',
ANNOTATE: 'ئىزاھلاش',
RESIZE: 'چوڭايتىش',
},
tools: {
CROP: 'كىسىش',
ROTATE: 'ئايلاندۇرۇش',
FLIP_X: 'X بويىچە ئايلاندۇرۇش',
FLIP_Y: 'Y بويىچە ئايلاندۇرۇش',
BRIGHTNESS: 'يورۇقلۇق',
CONTRAST: 'قارا-ئاق',
HSV: 'رەڭ تەڭشەش',
WARMTH: 'ئىسسىقلىق',
BLUR: 'تۈگۈشتۈرۈش',
THRESHOLD: 'ئۆلچەم',
POSTERIZE: 'پوستېرلاشتۇرۇش',
PIXELATE: 'پېكسېلاشتۇرۇش',
NOISE: 'شۇغلانما',
},
};
Environment:
• react-filerobot-image-editor version: [Insert version here]
• React version: [Insert version here]
• Browser: [Insert browser info, e.g., Chrome 120]
• OS: [Insert OS, e.g., macOS Ventura]
Thank you in advance for your support! 🚀
The text was updated successfully, but these errors were encountered: