Skip to content

Issue 1473 Translate Improvements#1642

Open
Nespina24 wants to merge 5 commits into
OpenEnergyDashboard:developmentfrom
Nespina24:issue-1473-Translate-Improvements
Open

Issue 1473 Translate Improvements#1642
Nespina24 wants to merge 5 commits into
OpenEnergyDashboard:developmentfrom
Nespina24:issue-1473-Translate-Improvements

Conversation

@Nespina24

Copy link
Copy Markdown
Contributor

Description

Translated 6 strings in src/client/app/components/CompareLineChartComponent.tsx, shown below:

  • Shifted
  • The original line has ... (only part of string shown here)
  • The shifted line overlaps the original line ... (only part of string shown here)
  • Days of week align (unless missing readings)
  • The month and day of the month align for the original and shifted readings
  • until original reading at date (only part of string shown here)

Added the necessary key/value translations in src/client/app/translations/data.ts in English, Spanish, and French.

Fixes #1473

Type of change

  • Note merging this changes the database configuration.
  • This change requires a documentation update

Checklist

  • I have followed the OED pull request ideas
  • I have removed text in ( ) from the issue request
  • You acknowledge that every person contributing to this work has signed the OED Contributing License Agreement and each author is listed in the Description section.

Limitations

The line "const translate = useTranslate();" is used on both line 30 and line 198 in different functions, which feels redundant and a better way might exist.

@huss huss left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

@Nespina24 Thank you for this contribution. Overall, it works well and is good. I have made a few comments to consider. Please let me know if you have any thoughts/questions.

Comment thread src/client/app/translations/data.ts Outdated
Comment thread src/client/app/components/CompareLineChartComponent.tsx Outdated
Comment thread src/client/app/translations/data.ts Outdated
Comment thread src/client/app/translations/data.ts Outdated
Comment thread src/client/app/translations/data.ts Outdated
@Nespina24

Nespina24 commented Jun 16, 2026

Copy link
Copy Markdown
Contributor Author

@huss I was unaware about leaving untranslated strings with an emoji. I had them auto-translated by AI at first, but I personally cannot read the automated translations, so I reverted them to the same as the English strings and put the symbol at the end.

For the useTranslate() function, I interpreted your comment as nesting checkReceivedData() inside CompareLineChartComponent(), but if you meant anything different, please let me know.

@huss huss left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

@Nespina24 During a sweep of PRs today I realized this was ready for re-review but I had not done that. I'm sorry this sat for a while.

Thank you for addressing my previous comments. This seems to be working well. I made two minor comments to consider. I think this is very close to merging. Please let me know if anything is not clear or you have questions/thoughts.

"compare.line.original.shifted.count.first": "The original line has ",
"compare.line.original.shifted.count.second": " readings but the shifted line has ",
"compare.line.original.shifted.count.third": ", which means the points will not align horizontally.",
"compare.line.shifted.overlaps.start": "The shifted line overlaps the original line starting at {start}",

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I cannot find where this is used.

"select.unit": "Select Unit",
"shift.date.interval": "Shift Date Interval",
"shifted": "Shifted",
"shifted.data.crosses.leap.year.to.non.leap.year": "Shifted data crosses a leap year so the graph might not align appropriately",

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I cannot find where this is used.

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.

untranslated compare line strings

2 participants