Skip to content

Conversation

jamiebenstead
Copy link
Contributor

Fixed a translation typo which was causing the file to error. Fixed loadpath.

Copy link
Contributor

@Copilot 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.

Pull Request Overview

This PR fixes a translation file syntax error and updates the i18n configuration to properly handle file paths in different deployment environments.

  • Fixed a JSON syntax error by removing an extra trailing comma in the English translation file
  • Updated the i18n backend loadPath to use environment-based path resolution

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
src/utils/i18n.js Updated backend loadPath to use PUBLIC_URL environment variable for proper path resolution
public/translations/en.json Removed extra trailing comma causing JSON syntax error

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@jamiebenstead jamiebenstead temporarily deployed to previews/1241/merge August 29, 2025 15:58 — with GitHub Actions Inactive
Copy link
Contributor

@adrian-rpf adrian-rpf left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, I should have caught this one

@jamiebenstead jamiebenstead merged commit 729e5a1 into main Aug 29, 2025
8 checks passed
@jamiebenstead jamiebenstead deleted the Fix-translation-file-typo branch August 29, 2025 16:14
@loiswells97 loiswells97 mentioned this pull request Sep 19, 2025
loiswells97 added a commit that referenced this pull request Sep 19, 2025
### Added

- Ability to translate demo project instructions (#1230)
- Translations (#1212)

### Changed

- Improved status bar styling (#1221)
- Added method to translate last saved time (#1223)
- Deleting unused strings and components (#1225)
- Determine locale from web component attribute instead of browser path
(#1244)

### Fixed

- CrowdIn issue for pluralised strings with no `one` version (#1234)
- Update `imagePanel.gallery` string to remove Title Casing for
consistency (#1238)
- Update `imageUploadButton.uploadImage` string to remove Title Casing
for consistency (#1238)
- Fixed typo in the `en.json` translation file (#1241)

### Removed

- Remove unused translation string `filePanel.images` (#1238)
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.

2 participants