mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-19 06:10:31 +00:00
re-structure to monorepo.
This commit is contained in:
7
packages/webapp/src/lang/en/authentication.tsx
Normal file
7
packages/webapp/src/lang/en/authentication.tsx
Normal file
@@ -0,0 +1,7 @@
|
||||
// @ts-nocheck
|
||||
|
||||
|
||||
export default {
|
||||
"login": "Login",
|
||||
"reset_password": "Reset password",
|
||||
};
|
||||
2231
packages/webapp/src/lang/en/index.json
Normal file
2231
packages/webapp/src/lang/en/index.json
Normal file
File diff suppressed because it is too large
Load Diff
61
packages/webapp/src/lang/en/locale.tsx
Normal file
61
packages/webapp/src/lang/en/locale.tsx
Normal file
@@ -0,0 +1,61 @@
|
||||
// @ts-nocheck
|
||||
import printValue from '../printValue';
|
||||
|
||||
export const locale = {
|
||||
mixed: {
|
||||
default: '${path} is invalid',
|
||||
required: '${path} is a required field ',
|
||||
oneOf: '${path} must be one of the following values: ${values}',
|
||||
notOneOf: '${path} must not be one of the following values: ${values}',
|
||||
notType: ({ path, type, value, originalValue }) => {
|
||||
let isCast = originalValue != null && originalValue !== value;
|
||||
let msg =
|
||||
`${path} must be a \`${type}\` type, ` +
|
||||
`but the final value was: \`${printValue(value, true)}\`` +
|
||||
(isCast
|
||||
? ` (cast from the value \`${printValue(originalValue, true)}\`).`
|
||||
: '.');
|
||||
|
||||
if (value === null) {
|
||||
msg += `\n If "null" is intended as an empty value be sure to mark the schema as \`.nullable()\``;
|
||||
}
|
||||
|
||||
return msg;
|
||||
},
|
||||
defined: '${path} must be defined',
|
||||
},
|
||||
string: {
|
||||
length: '${path} must be exactly ${length} characters',
|
||||
min: '${path} must be at least ${min} characters',
|
||||
max: '${path} must be at most ${max} characters',
|
||||
matches: '${path} must match the following: "${regex}"',
|
||||
email: '${path} must be a valid email',
|
||||
url: '${path} must be a valid URL',
|
||||
trim: '${path} must be a trimmed string',
|
||||
lowercase: '${path} must be a lowercase string',
|
||||
uppercase: '${path} must be a upper case string',
|
||||
},
|
||||
number: {
|
||||
min: '${path} must be greater than or equal to ${min}',
|
||||
max: '${path} must be less than or equal to ${max}',
|
||||
lessThan: '${path} must be less than ${less}',
|
||||
moreThan: '${path} must be greater than ${more}',
|
||||
notEqual: '${path} must be not equal to ${notEqual}',
|
||||
positive: '${path} must be a positive number',
|
||||
negative: '${path} must be a negative number',
|
||||
integer: '${path} must be an integer',
|
||||
},
|
||||
date: {
|
||||
min: '${path} field must be later than ${min}',
|
||||
max: '${path} field must be at earlier than ${max}',
|
||||
},
|
||||
boolean: {},
|
||||
object: {
|
||||
noUnknown:
|
||||
'${path} field cannot have keys not specified in the object shape',
|
||||
},
|
||||
array: {
|
||||
min: '${path} field must have at least ${min} items',
|
||||
max: '${path} field must have less than or equal to ${max} items',
|
||||
},
|
||||
};
|
||||
Reference in New Issue
Block a user