-
Notifications
You must be signed in to change notification settings - Fork 0
331 i18n #334
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
✅ Deploy Preview for reactol ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Copilot reviewed 29 out of 30 changed files in this pull request and generated 2 comments.
Files not reviewed (1)
- package.json: Language not supported
| // note: we get an error if dev-tools is open, ignore that error. | ||
| } else { | ||
| setMessage({ title: 'Error', severity: 'error', message: 'Failed to read clipboard: ' + error }) | ||
| setMessage({ title: 'Error', severity: 'error', message: t('layers.readClipboardError') + error }) |
Copilot
AI
Apr 4, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Consider converting the 'error' object to a string (e.g., using String(error) or error.message) to ensure the displayed message is clear and consistent.
| setMessage({ title: 'Error', severity: 'error', message: t('layers.readClipboardError') + error }) | |
| setMessage({ title: 'Error', severity: 'error', message: t('layers.readClipboardError') + String(error) }) |
| addTabToLayout(newTab) | ||
| } catch (e) { | ||
| setMessage({ title: 'Error', severity: 'error', message: 'The file content is not a valid JSON format. Please check the file and try again. ' + e }) | ||
| setMessage({ title: t('documents.error'), severity: 'error', message: t('documents.invalidJsonError') + ' ' + e }) |
Copilot
AI
Apr 4, 2025
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Consider explicitly converting the error 'e' to a string (using String(e) or e.message) to avoid potential formatting issues in the error message.
| setMessage({ title: t('documents.error'), severity: 'error', message: t('documents.invalidJsonError') + ' ' + e }) | |
| setMessage({ title: t('documents.error'), severity: 'error', message: t('documents.invalidJsonError') + ' ' + e.message }) |
Fixes #331