-
Notifications
You must be signed in to change notification settings - Fork 87
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(i18n): replace hardcoded string values for AdminFormNavbar (#7456)
feat(i18n): add en-sg translations and types for admin-form-navbar, use translations in AdminFormNavbar Co-authored-by: Ken Lee Shu Ming <[email protected]>
- Loading branch information
1 parent
b506433
commit a79f783
Showing
6 changed files
with
58 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 18 additions & 0 deletions
18
frontend/src/i18n/locales/features/admin-form-navbar/en-sg.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
import { AdminFormNavbar } from '.' | ||
|
||
export const enSG: AdminFormNavbar = { | ||
tabs: { | ||
create: 'Create', | ||
settings: 'Settings', | ||
results: 'Results', | ||
routing: 'Routing', | ||
}, | ||
manageCollaborators: 'Manage collaborators', | ||
previewForm: 'Preview form', | ||
formActions: 'Form actions', | ||
shareBtn: { | ||
text: 'Share', | ||
textMobile: 'Share form link', | ||
tooltip: 'Share your form link', | ||
}, | ||
} |
18 changes: 18 additions & 0 deletions
18
frontend/src/i18n/locales/features/admin-form-navbar/index.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
export * from './en-sg' | ||
|
||
export interface AdminFormNavbar { | ||
tabs: { | ||
create: string | ||
settings: string | ||
results: string | ||
routing: string | ||
} | ||
manageCollaborators: string | ||
previewForm: string | ||
formActions: string | ||
shareBtn: { | ||
text: string | ||
textMobile: string | ||
tooltip: string | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
export { type AdminFormNavbar } from './admin-form-navbar' | ||
export { type Common } from './common' | ||
export { type Login } from './login' | ||
export { type PublicForm } from './public-form' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters