-
-
Notifications
You must be signed in to change notification settings - Fork 504
/
translations.js
50 lines (48 loc) · 3.86 KB
/
translations.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
import * as constants from "./constains";
export const translations = {
[constants.EMPTY_GROUP]: "Empty group",
[constants.EMPTY_RULE_GROUP]: "No conditions for group field {{field}}",
[constants.EMPTY_QUERY]: "Empty query",
[constants.EMPTY_CASE]: "Empty case",
[constants.NO_CONFIG_FOR_FIELD]: "No config for field {{field}}",
[constants.FIXED_OPERATOR]: "Fixed operator {{from}} to {{to}} for field {{field}}",
[constants.NO_CONFIG_FOR_OPERATOR]: "No config for operator {{operator}}",
[constants.NO_CONFIG_FOR_FUNCTION]: "No config for function {{funcKey}}",
[constants.INVALID_VALUE]: "Invalid value",
[constants.INVALID_FUNC_ARG_VALUE]: "Invalid value of arg {{argName}} for func {{funcName}}: {{argValidationError}}",
[constants.UNSUPPORTED_FIELD_TYPE]: "Type of field {{field}} is not supported",
[constants.UNSUPPORTED_OPERATOR_FOR_FIELD]: "Operator {{operator}} is not supported for field {{field}}",
[constants.INCOMPLETE_RULE]: "Incomplete rule",
[constants.INCOMPLETE_LHS]: "Incomplete LHS",
[constants.INCOMPLETE_RHS]: "Incomplete RHS",
[constants.INVALID_VALUE_SRC]: "Invalid value src {{valueSrcs, list}}",
[constants.BAD_MULTISELECT_VALUES+"_one"]: "Value {{badValues, list}} is not in the list of allowed values",
[constants.BAD_MULTISELECT_VALUES+"_other"]: "Values {{badValues, list}} are not in the list of allowed values",
[constants.BAD_SELECT_VALUE]: "Value {{value}} is not in the list of allowed values",
[constants.INCORRECT_VALUE_TYPE]: "Value should have type {{wType}}, but got value of type {{valueType}}",
[constants.INCORRECT_VALUE_JS_TYPE]: "Value should have JS type {{jsType}}, but got value of type {{valueTypeof}}",
[constants.VALUE_LENGTH_CONSTRAINT_FAIL]: "Value {{value}} should have max length {{fieldSettings.maxLength}} but got {{length}}",
[constants.VALUE_MIN_CONSTRAINT_FAIL]: "Value {{value}} should be greater than or equal to {{fieldSettings.min}}",
[constants.VALUE_MIN_CONSTRAINT_FAIL+"_"+constants._CONTEXT_MIN_MAX]: "Value {{value}} should be from {{fieldSettings.min}} to {{fieldSettings.max}}",
[constants.VALUE_MAX_CONSTRAINT_FAIL]: "Value {{value}} should be less than or equal to {{fieldSettings.max}}",
[constants.VALUE_MAX_CONSTRAINT_FAIL+"_"+constants._CONTEXT_MIN_MAX]: "Value {{value}} should be from {{fieldSettings.min}} to {{fieldSettings.max}}",
[constants.NO_CONFIG_FOR_FIELD_VALUE]: "No config for field {{field}}",
[constants.CANT_COMPARE_FIELD_WITH_ITSELF]: "Can't compare field {{field}} with itself",
[constants.CANT_COMPARE_FIELD_WITH_FIELD]: "Can't compare field {{leftField}} with {{rightField}}",
[constants.INCORRECT_FIELD_TYPE]: "Field {{field}} is of type {{type}}, but expected {{expected}}",
[constants.UNSUPPORTED_FUNCTION_FOR_FIELD]: "Unsupported function {{funcKey}} for field {{field}}",
[constants.REQUIRED_FUNCTION_ARG]: "Value of arg {{argName}} for func {{funcName}} is required",
[constants.INCORRECT_FUNCTION_RETURN_TYPE]: "Function {{funcKey}} should return value of type {{returnType}}, but got {{valueType}}",
[constants.INVALID_RANGE]: "Invalid range",
[constants.ITEM_POSITION_ROOT]: "Root",
[constants.ITEM_POSITION+"__rule"]: "Leaf #{{globalLeafNo}}",
[constants.ITEM_POSITION+"__group"]: "Group #{{globalGroupNo}}",
[constants.ITEM_POSITION+"__rule_group"]: "Rule-group #{{globalNoByType}}",
[constants.ITEM_POSITION+"__case_group"]: "Case #{{globalNoByType}}",
[constants.ITEM_POSITION+"__rule__deleted"]: "Deleted leaf #{{globalLeafNo}}",
[constants.ITEM_POSITION+"__group__deleted"]: "Deleted group #{{globalGroupNo}}",
[constants.ITEM_POSITION+"__rule_group__deleted"]: "Deleted rule-group #{{globalNoByType}}",
[constants.ITEM_POSITION+"__case_group__deleted"]: "Deleted case #{{globalNoByType}}",
[constants.ITEM_POSITION_IN_CASE]: "{{str}} in case #{{caseNo}}",
[constants.ITEM_POSITION_WITH_INDEX_PATH]: "{{str}} (index path: {{indexPath, list}})",
};