Skip to content

Conversation

@jenish77
Copy link

@jenish77 jenish77 commented Oct 6, 2025

Summary

This PR removes the temporary hotfix in translations.mjs that normalized irregular # counts (e.g., ####variable#######variable###) and handled empty {} placeholders from GlotPress exports.
It also improves the logging by:

  • Displaying per-locale summaries of invalid translation keys when debug mode is enabled.
  • Providing clearer warning messages for invalid or deprecated placeholders.

Context

The root cause of the placeholder issues originates from translation strings exported via GlotPress.
Once all placeholder inconsistencies are fixed upstream on translate.wordpress.org, this cleanup code will no longer be required.

Related issue

Fixes #5149

@jenish77 jenish77 requested a review from a team as a code owner October 6, 2025 18:33
@jenish77 jenish77 requested review from krysal and obulat October 6, 2025 18:33
@openverse-bot openverse-bot added 🧱 stack: frontend Related to the Nuxt frontend 🟩 priority: low Low priority and doesn't need to be rushed 🛠 goal: fix Bug fix 💻 aspect: code Concerns the software code in the repository labels Oct 6, 2025
@openverse-bot openverse-bot moved this to 👀 Needs Review in Openverse PRs Oct 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

💻 aspect: code Concerns the software code in the repository 🛠 goal: fix Bug fix 🟩 priority: low Low priority and doesn't need to be rushed 🧱 stack: frontend Related to the Nuxt frontend

Projects

Status: 👀 Needs Review

Development

Successfully merging this pull request may close these issues.

Remove i18n cleanup ({} and extra #) from the i18n scripts

2 participants