Skip to content

Commit

Permalink
fix: update EditMobile for opengovsg/FormSG#7869
Browse files Browse the repository at this point in the history
  • Loading branch information
LoneRifle committed Nov 25, 2024
1 parent d7659d9 commit 7537c9e
Show file tree
Hide file tree
Showing 2 changed files with 196 additions and 108 deletions.

This file was deleted.

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",
},
},
}

0 comments on commit 7537c9e

Please sign in to comment.