-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: update EditMobile for opengovsg/FormSG#7869
- Loading branch information
Showing
2 changed files
with
196 additions
and
108 deletions.
There are no files selected for viewing
108 changes: 0 additions & 108 deletions
108
...nd-design/BuilderAndDesignDrawer/EditFieldDrawer/edit-fieldtype/EditMobile/EditMobile.tsx
This file was deleted.
Oops, something went wrong.
196 changes: 196 additions & 0 deletions
196
replacements/frontend/src/i18n/locales/features/admin-form/sidebar/fields/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,196 @@ | ||
import { Fields } from '.' | ||
|
||
export const enSG: Fields = { | ||
builder: { | ||
title: 'Fields', | ||
createField: 'Create field', | ||
addFields: 'Add Fields', | ||
image: 'Image', | ||
statement: 'Paragraph', | ||
section: 'Heading', | ||
attachment: 'Attachment', | ||
checkbox: 'Checkbox', | ||
date: 'Date', | ||
decimal: 'Decimal', | ||
dropdown: 'Dropdown', | ||
countryRegion: 'Country/Region', | ||
email: 'Email', | ||
homeNumber: 'Home number', | ||
mobileNumber: 'Mobile number', | ||
longText: 'Long answer', | ||
nik: 'NIK / KK', | ||
number: 'Number', | ||
radio: 'Radio', | ||
rating: 'Rating', | ||
shortAnswer: 'Short answer', | ||
table: 'Table', | ||
yesNo: 'Yes/No', | ||
children: 'Children', | ||
}, | ||
commonFieldComponents: { | ||
title: 'Field Name', | ||
description: 'Description', | ||
required: 'Required', | ||
noCharactersAllowed: 'Number of characters allowed', | ||
charactersAllowedPlaceholder: 'Number of characters', | ||
}, | ||
radio: { | ||
others: 'Others', | ||
options: { | ||
title: 'Options', | ||
placeholder: 'Enter one option per line', | ||
}, | ||
duplicateOptionsError: 'Please remove duplicate options.', | ||
otherInvalidInputError: 'Please specify a value for the "others" option', | ||
}, | ||
checkbox: { | ||
selectionLimit: { | ||
label: 'Selection limits', | ||
description: | ||
'Customise the number of options that users are allowed to select', | ||
minimum: 'Minimum', | ||
maximum: 'Maximum', | ||
}, | ||
}, | ||
yesNo: { | ||
yes: 'Yes', | ||
no: 'No', | ||
}, | ||
paragraph: 'Paragraph', | ||
section: { | ||
heading: 'Section heading', | ||
}, | ||
rating: { | ||
numOfSteps: 'Number of steps', | ||
shape: 'Shape', | ||
shapes: { | ||
Heart: 'Heart', | ||
Star: 'Star', | ||
}, | ||
}, | ||
email: { | ||
otpVerification: { | ||
title: 'OTP verification', | ||
description: 'OTP verification has been disabled in this demo. Respondents must verify by entering a code sent to them.', | ||
}, | ||
restrictEmailDomains: { | ||
title: 'Restrict email domains', | ||
inputLabel: 'Domains allowed', | ||
placeholder: '@data.gov.sg\[email protected]', | ||
}, | ||
emailConfirmation: { | ||
title: 'Email confirmation', | ||
description: 'Customise an email acknowledgement to respondents', | ||
subject: { | ||
title: 'Subject', | ||
placeholder: 'Default email subject', | ||
}, | ||
senderName: { | ||
title: 'Sender name', | ||
placeholder: 'Default sender name is your agency name', | ||
}, | ||
content: { | ||
title: 'Content', | ||
placeholder: 'Default email body', | ||
}, | ||
includePdfResponse: 'Include PDF response', | ||
includePdfResponseWarning: | ||
'PDF responses are not available for payment forms.', | ||
}, | ||
}, | ||
mobileNo: { | ||
otpVerification: { | ||
title: 'OTP Verification', | ||
description: 'Respondents must verify by entering a code sent to them.', | ||
}, | ||
allowInternationalNumber: 'Allow international numbers', | ||
smsCounts: 'SMSes used', | ||
twilioCredentials: { | ||
success: 'Twilio credentials added', | ||
exceedQuota: 'You have reached the free tier limit for SMS verification.', | ||
noCredentials: 'Twilio credentials not added.', | ||
cta: 'Add credentials now', | ||
}, | ||
}, | ||
date: { | ||
dateValidation: { | ||
title: 'Date validation', | ||
NoPast: 'Disallow past dates', | ||
NoFuture: 'Disallow future dates', | ||
Custom: 'Custom date range', | ||
atLeastOneDateError: 'You must specify at least one date.', | ||
validDateError: 'Please enter a valid date', | ||
maxMinError: 'Max date cannot be less than min date.', | ||
}, | ||
customiseAvailableDays: { | ||
title: 'Customise available days', | ||
requiredError: 'Please select available days of the week', | ||
noAvailableDaysError: | ||
"The selected days aren't available within your custom date range", | ||
}, | ||
}, | ||
imageAttachment: { | ||
title: 'Uploaded image', | ||
requiredError: 'Please upload an image', | ||
fileUploaderLink: 'Choose file', | ||
dragAndDrop: ' or drag and drop here', | ||
dragActive: 'Drop the file here', | ||
maxFileSize: 'Maximum file size: {readableMaxSize}', | ||
ariaLabelRemove: 'Click to remove file', | ||
error: { | ||
fileEmpty: | ||
'You have uploaded an empty file, please upload a valid attachment', | ||
fileTooLarge: | ||
'You have exceeded the limit, please upload a file below {readableMaxSize}', | ||
fileInvalidType: | ||
"Your file's extension ending in *{fileExt} is not allowed", | ||
tooManyFiles: 'You can only upload a single file in this input', | ||
zipFileInvalidType: | ||
'The following file extensions in your zip file are not valid: {stringOfInvalidExtensions}', | ||
zipParsing: 'An error has occurred whilst parsing your zip file', | ||
}, | ||
}, | ||
table: { | ||
minimumRows: 'Minimum rows', | ||
maximumRows: 'Maximum rows allowed', | ||
allowAddMoreRows: 'Allow respondent to add more rows', | ||
error: { | ||
minRow: 'Minimum rows must be greater than 0', | ||
maxRow: 'Maximum rows must be greater than 0', | ||
maxRowGreaterThanMin: 'Maximum rows must be greater than minimum rows', | ||
}, | ||
column: 'Column', | ||
ariaLabelDelete: 'Delete column', | ||
addColumn: 'Add column', | ||
}, | ||
number: { | ||
validation: 'Number validation', | ||
minValue: 'Minimum value', | ||
maxValue: 'Maximum value', | ||
maxValueGreaterThanMin: 'Minimum must be less than maximum', | ||
fieldRestriction: { | ||
title: 'Field restriction', | ||
lengthRestriction: 'Length restriction', | ||
Length: 'Number of characters allowed', | ||
Range: 'Range of values allowed', | ||
}, | ||
error: { | ||
validationType: 'Please select a validation type', | ||
numOfCharacter: 'Please enter number of characters', | ||
validDecimal: 'Please enter a valid decimal', | ||
min: 'Cannot be less than 1', | ||
max: 'Cannot be more than 10000', | ||
rangeValue: 'Please enter range values', | ||
minRangeValue: 'Minimum cannot be 0', | ||
maxRangeValue: 'Maximum cannot be 0', | ||
}, | ||
}, | ||
attachment: { | ||
info: 'View our [complete list]({acceptedFileTypes}) of accepted file types. Please also read our [FAQ on email reliability]({guideEmailReliability}) relating to unaccepted file types.', | ||
maximumSize: 'Maximum size of individual attachment', | ||
error: { | ||
exceedSize: | ||
"You have exceeded your form's attachment size limit of {maxTotalSizeMb} MB", | ||
}, | ||
}, | ||
} |