Skip to content

chore: add a test case so that a substantative placeholder changes are appant to contributors#6681

Merged
CommanderStorm merged 3 commits intolouislam:masterfrom
CommanderStorm:translation-template-change-test
Jan 12, 2026
Merged

chore: add a test case so that a substantative placeholder changes are appant to contributors#6681
CommanderStorm merged 3 commits intolouislam:masterfrom
CommanderStorm:translation-template-change-test

Conversation

@CommanderStorm
Copy link
Copy Markdown
Collaborator

Instead of explaining to people that changing translations in a substantative way is a breaking change, lets just add a test for this

Copilot AI review requested due to automatic review settings January 12, 2026 10:12
@github-actions
Copy link
Copy Markdown
Contributor

Hello! Thank you for your contribution 👋

As this is your first contribution, please be sure to check out our
Pull Request guidelines.

In particular:

  • Mark your PR as Draft while you’re still making changes
  • Mark it as Ready for review once it’s fully ready 🟢

If you have any design or process questions, feel free to ask them right here in this pull request - unclear documentation is a bug too.

Thanks for lending a paw to Uptime Kuma 🐻

Copy link
Copy Markdown
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.

Pull request overview

This PR adds a test to enforce that changes to translation placeholder parameters in en.json are treated as breaking changes. The test compares the local en.json against the upstream master version to detect when placeholder parameters have been modified, requiring contributors to rename translation keys instead.

Changes:

  • Converted file system operations from synchronous to async/promises
  • Added a new test that validates translation placeholder parameters haven't changed
  • Implemented extractParams helper function to parse placeholders from translation strings

@CommanderStorm CommanderStorm changed the title chore: add a test case so that a substantative placeholder changes are appent to contributors chore: add a test case so that a substantative placeholder changes are appant to contributors Jan 12, 2026
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@CommanderStorm CommanderStorm enabled auto-merge (squash) January 12, 2026 10:32
@CommanderStorm CommanderStorm merged commit e9b7ac8 into louislam:master Jan 12, 2026
24 checks passed
@CommanderStorm CommanderStorm added this to the 2.1.0 milestone Jan 12, 2026
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