opengovsg / FormSG

Form builder for the Singapore Government
https://form.gov.sg
Other
260 stars 78 forks source link

feat(i18n): replace hardcoded string values for AdminFormNavbar #7456

Closed helloitsxinyi closed 1 week ago

helloitsxinyi commented 2 weeks ago

Problem

This issue was discussed with @LoneRifle in person, and I would like to contribute to the i18n efforts in FormSG. This first PR involves the addition of en-sg translations for AdminFormNavbar to replace hardcoded string values.

Solution

This PR replaces hardcoded string values in AdminFormNavbar. The directories involved are frontend/src/features/admin-form/common/components/AdminFormNavbar and frontend/src/i18n/locales/features.

Breaking Changes

Features:

Improvements:

Bug Fixes:

Before & After Screenshots

BEFORE:

Screenshot 2024-06-28 at 12 55 18 PM Screenshot 2024-06-28 at 12 55 32 PM Screenshot 2024-06-28 at 12 55 38 PM Screenshot 2024-06-28 at 12 57 20 PM

AFTER:

Screenshot 2024-06-28 at 12 59 35 PM Screenshot 2024-06-28 at 12 59 41 PM Screenshot 2024-06-28 at 12 59 46 PM Screenshot 2024-06-28 at 12 58 44 PM

Tests

All tests as these changes involve the external facing UI.

Deploy Notes

NA

New environment variables:

NA

New scripts:

NA

New dependencies:

NA

New dev dependencies:

NA