Skip to content

fix(i18n): add missing translation for optionsToRecipientsSaved#9191

Open
abhisek7154 wants to merge 1 commit intoopengovsg:developfrom
abhisek7154:feat/i18n-missing-translations-8435
Open

fix(i18n): add missing translation for optionsToRecipientsSaved#9191
abhisek7154 wants to merge 1 commit intoopengovsg:developfrom
abhisek7154:feat/i18n-missing-translations-8435

Conversation

@abhisek7154
Copy link
Copy Markdown

Problem

Some toast messages in useEditFormField.ts use hardcoded strings instead of i18n translation keys.

Closes #8435

Solution

Replaced the hardcoded success message with the i18n translation key:

features.adminForm.toasts.field.optionsToRecipientsSaved

Added the corresponding translation entry in:
frontend/src/i18n/locales/features/admin-form/toasts/en-sg.ts

Also updated the Toasts interface in:
frontend/src/i18n/locales/features/admin-form/toasts/index.ts

Breaking Changes

  • No - this PR is backwards compatible

Bug Fixes

  • Added missing translation for the options-to-recipients saved toast message.

Tests

  1. Run the frontend locally.
  2. Update dropdown option recipient mappings.
  3. Confirm the toast message appears correctly using the translation key.

Deploy Notes

No deployment changes required.

@abhisek7154 abhisek7154 requested a review from a team as a code owner March 11, 2026 15:35
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.

feat(i18n): missing translation in some files

1 participant