@react-query-builder-express/core
Version:
User-friendly query builder for React. Core
51 lines (48 loc) • 3.96 kB
JavaScript
import * as constants from "./constains";
export const translations = {
[]: "Empty group",
[]: "No conditions for group field {{field}}",
[]: "Empty query",
[]: "Empty case",
[]: "No config for field {{field}}",
[]: "Fixed operator {{from}} to {{to}} for field {{field}}",
[]: "No config for operator {{operator}}",
[]: "No config for function {{funcKey}}",
[]: "Invalid value",
[]: "Invalid value of arg {{argName}} for func {{funcName}}: {{argValidationError}}",
[]: "Type of field {{field}} is not supported",
[]: "Operator {{operator}} is not supported for field {{field}}",
[]: "Incomplete rule",
[]: "Incomplete LHS",
[]: "Incomplete RHS",
[]: "Invalid value src {{valueSrcs, list}}",
[]: "Value {{badValues, list}} is not in the list of allowed values",
[]: "Values {{badValues, list}} are not in the list of allowed values",
[]: "Value {{value}} is not in the list of allowed values",
[]: "Value should have type {{wType}}, but got value of type {{valueType}}",
[]: "Value should have JS type {{jsType}}, but got value of type {{valueTypeof}}",
[]: "Value {{value}} should have max length {{fieldSettings.maxLength}} but got {{length}}",
[]: "Value {{value}} should be greater than or equal to {{fieldSettings.min}}",
[]: "Value {{value}} should be from {{fieldSettings.min}} to {{fieldSettings.max}}",
[]: "Value {{value}} should be less than or equal to {{fieldSettings.max}}",
[]: "Value {{value}} should be from {{fieldSettings.min}} to {{fieldSettings.max}}",
[]: "No config for field {{field}}",
[]: "Can't compare field {{field}} with itself",
[]: "Can't compare field {{leftField}} with {{rightField}}",
[]: "Field {{field}} is of type {{type}}, but expected {{expected}}",
[]: "Unsupported function {{funcKey}} for field {{field}}",
[]: "Value of arg {{argName}} for func {{funcName}} is required",
[]: "Function {{funcKey}} should return value of type {{returnType}}, but got {{valueType}}",
[]: "Invalid range",
[]: "Root",
[]: "Leaf #{{globalLeafNo}}",
[]: "Group #{{globalGroupNo}}",
[]: "Rule-group #{{globalNoByType}}",
[]: "Case #{{globalNoByType}}",
[]: "Deleted leaf #{{globalLeafNo}}",
[]: "Deleted group #{{globalGroupNo}}",
[]: "Deleted rule-group #{{globalNoByType}}",
[]: "Deleted case #{{globalNoByType}}",
[]: "{{str}} in case #{{caseNo}}",
[]: "{{str}} (index path: {{indexPath, list}})",
};