Skip to content

refactor: Replace hardcoded strings with translations#5417

Open
r6mez wants to merge 7 commits intolitmuschaos:masterfrom
r6mez:replace-strings-with-translations
Open

refactor: Replace hardcoded strings with translations#5417
r6mez wants to merge 7 commits intolitmuschaos:masterfrom
r6mez:replace-strings-with-translations

Conversation

@r6mez
Copy link

@r6mez r6mez commented Jan 27, 2026

Proposed changes

This pull request focuses on improving internationalization across several UI components by replacing hardcoded user-facing strings with calls to the getString function, ensuring all text is sourced from the translation files.

Additionally, it updates the corresponding test files

Closes #4147

Types of changes

What types of changes does your code introduce to Litmus? Put an x in the boxes that apply

  • New feature (non-breaking change which adds functionality)
  • Bugfix (non-breaking change which fixes an issue)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation Update (if none of the other choices applies)

Checklist

  • I have read the CONTRIBUTING doc
  • I have signed the commit for DCO to be passed.
  • Lint and unit tests pass locally with my changes
  • I have added tests that prove my fix is effective or that my feature works (if appropriate)
  • I have added necessary documentation (if appropriate)

Dependency

Special notes for your reviewer:

@r6mez r6mez changed the title Replace strings with translations refactor: Replace hardcoded strings with translations Jan 27, 2026
@SahilKr24
Copy link
Member

@PriteshKiri can we get rid of the unused variable?
image

@PriteshKiri
Copy link
Contributor

@r6mez could you please rebase your PR? The build failure will be fixed once you push that.

r6mez added 4 commits March 17, 2026 12:59
Signed-off-by: Ramez Medhat <iramezdev@gmail.com>
Signed-off-by: Ramez Medhat <iramezdev@gmail.com>
Signed-off-by: Ramez Medhat <iramezdev@gmail.com>
Signed-off-by: Ramez Medhat <iramezdev@gmail.com>
@r6mez r6mez force-pushed the replace-strings-with-translations branch from f61e968 to 6e33b86 Compare March 17, 2026 10:59
Signed-off-by: Ramez Medhat <iramezdev@gmail.com>
@r6mez r6mez force-pushed the replace-strings-with-translations branch from c102352 to d02908b Compare March 17, 2026 11:13
@r6mez
Copy link
Author

r6mez commented Mar 17, 2026

@PriteshKiri can we get rid of the unused variable? image

Sure, I removed it.

@r6mez
Copy link
Author

r6mez commented Mar 17, 2026

@r6mez could you please rebase your PR? The build failure will be fixed once you push that.

Done.

SahilKr24 and others added 2 commits March 17, 2026 21:40
This fixes a double-advance bug in the AddProbeModalWizard by changing the Formik onSubmit handler to noop, so the nextStep() isn't called twice. It also fixes the validation regex for time units to allow empty optional fields, and updates a test matcher to account for lowercase translation text.

Signed-off-by: Ramez Medhat <iramezdev@gmail.com>
@r6mez r6mez force-pushed the replace-strings-with-translations branch from 89ab77a to f179dee Compare March 17, 2026 17:51
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 all the strings/texts in the strings.en.yaml file and replace all the occurences with getString() in frontend

4 participants