feat: add strings dictionary for english

This commit is contained in:
2025-12-10 20:24:08 -03:00
parent 3df4b2d842
commit ec61aabbf8
2 changed files with 20 additions and 2 deletions

13
src/app/strings.ts Normal file
View File

@@ -0,0 +1,13 @@
export const strings = Object.freeze({
add: 'add',
addContact: 'add a contact',
allFieldRequired: 'all fields are required',
company: 'company',
contactList: 'contact list',
name: 'name',
phone: 'phone',
errorMessageRequired: 'This field is required.',
errorMessageMaxLength: (maxLen: number) => `Must be ${maxLen} characters or fewer.`,
errorMessageMinLength: (minLen: number) => `Must be at least ${minLen} characters long.`,
errorMessagePhonePattern: `Valid format: + (optional) plus 12 to 15 digits`,
});