-
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): extract text from modals
- Loading branch information
Showing
15 changed files
with
97 additions
and
23 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
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
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
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,9 +1,11 @@ | ||
import { enSG as meta } from './meta' | ||
import { enSG as modals } from './modals' | ||
import { enSG as navbar } from './navbar' | ||
import { enSG as sidebar } from './sidebar' | ||
|
||
export const enSG = { | ||
navbar, | ||
sidebar, | ||
meta, | ||
modals, | ||
} |
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
23 changes: 23 additions & 0 deletions
23
frontend/src/i18n/locales/features/admin-form/modals/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,23 @@ | ||
export const enSG = { | ||
deleteField: { | ||
title: 'Delete field', | ||
description: { | ||
field: | ||
'Are you sure you want to delete this field? This action cannot be undone.', | ||
logic: | ||
'This field is used in your form logic, so deleting it may cause your logic to stop working correctly. Are you sure you want to delete this field?', | ||
payment: | ||
"Are you sure you want to delete payment field? This action can't be undone.", | ||
}, | ||
confirmButtonText: 'Yes, delete field', | ||
}, | ||
unsavedChanges: { | ||
title: 'You have unsaved changes', | ||
description: 'Are you sure you want to leave? Your changes will be lost.', | ||
confirmButtonText: 'Yes, discard changes', | ||
cancelButtonText: 'No, stay on page', | ||
}, | ||
dirty: { | ||
cancelButtonText: 'No, return to editing', | ||
}, | ||
} |
22 changes: 22 additions & 0 deletions
22
frontend/src/i18n/locales/features/admin-form/modals/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,22 @@ | ||
export * from './en-sg' | ||
|
||
export interface Modals { | ||
deleteField: { | ||
title: string | ||
description: { | ||
field: string | ||
logic: string | ||
payment: string | ||
} | ||
confirmButtonText: string | ||
} | ||
unsavedChanges: { | ||
title: string | ||
description: string | ||
confirmButtonText: string | ||
cancelButtonText: string | ||
} | ||
dirty: { | ||
cancelButtonText: 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
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
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