Skip to content

Conversation

@IanMayo
Copy link
Member

@IanMayo IanMayo commented Apr 4, 2025

Fixes #331

Copilot AI review requested due to automatic review settings April 4, 2025 19:35
@netlify
Copy link

netlify bot commented Apr 4, 2025

Deploy Preview for reactol ready!

Name Link
🔨 Latest commit 807f9d1
🔍 Latest deploy log https://app.netlify.com/sites/reactol/deploys/67f3a8b57229500008626377
😎 Deploy Preview https://deploy-preview-334--reactol.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link
Contributor

Copilot AI left a 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 })
Copy link

Copilot AI Apr 4, 2025

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.

Suggested change
setMessage({ title: 'Error', severity: 'error', message: t('layers.readClipboardError') + error })
setMessage({ title: 'Error', severity: 'error', message: t('layers.readClipboardError') + String(error) })

Copilot uses AI. Check for mistakes.
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 })
Copy link

Copilot AI Apr 4, 2025

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.

Suggested change
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 })

Copilot uses AI. Check for mistakes.
@IanMayo IanMayo merged commit 7a3afb4 into main Apr 7, 2025
7 of 8 checks passed
@IanMayo IanMayo deleted the 331-i18n branch April 7, 2025 12:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add I18N

2 participants