@@ -13,14 +13,17 @@ import { xsd } from '../common-rdf/ns';
13
13
14
14
export const logic = new Collection ( [ {
15
15
id : 'logic:and' ,
16
+ // i18next.t('filters.and', 'AND');
16
17
label : 'AND' ,
17
18
i18nKey : 'filters.and' ,
18
19
} , {
19
20
id : 'logic:or' ,
21
+ // i18next.t('filters.or', 'OR');
20
22
label : 'OR' ,
21
23
i18nKey : 'filters.or' ,
22
24
} , {
23
25
id : 'logic:not' ,
26
+ // i18next.t('filters.not', 'NOT');
24
27
label : 'NOT' ,
25
28
i18nKey : 'filters.not' ,
26
29
} ] ) ;
@@ -33,41 +36,47 @@ export const filters = new Collection([{
33
36
id : 'filter:equals' ,
34
37
label : 'Is exactly' ,
35
38
i18nKey : 'filters.equals' ,
39
+ // i18next.t('filters.equals', 'Is exactly');
36
40
uris : true ,
37
41
literals : true ,
38
42
operator : '=' ,
39
43
} , {
40
44
id : 'filter:less' ,
41
45
label : 'Is less than' ,
42
46
i18nKey : 'filters.less' ,
47
+ // i18next.t('filters.less', 'Is less than');
43
48
uris : false ,
44
49
literals : true ,
45
50
operator : '<' ,
46
51
} , {
47
52
id : 'filter:greater' ,
48
53
label : 'Is greater than' ,
49
54
i18nKey : 'filters.greater' ,
55
+ // i18next.t('filters.greater', 'Is greater than');
50
56
uris : false ,
51
57
literals : true ,
52
58
operator : '>' ,
53
59
} , {
54
60
id : 'filter:isIRI' ,
55
61
label : 'Is defined' ,
56
62
i18nKey : 'filters.isDefined' ,
63
+ // i18next.t('filters.isDefined', 'Is defined');
57
64
uris : true ,
58
65
literals : false ,
59
66
function : 'isIRI' ,
60
67
} , {
61
68
id : 'filter:isLiteral' ,
62
69
label : 'Is defined' ,
63
70
i18nKey : 'filters.isDefined' ,
71
+ // i18next.t('filters.isDefined', 'Is defined');
64
72
uris : false ,
65
73
literals : true ,
66
74
function : 'isLiteral' ,
67
75
} , {
68
76
id : 'filter:stringStarts' ,
69
77
label : 'Starts with' ,
70
78
i18nKey : 'filters.startsWith' ,
79
+ // i18next.t('filters.startsWith', 'Starts with');
71
80
uris : false ,
72
81
literals : true ,
73
82
restrict : [ xsd . string ] ,
@@ -76,6 +85,7 @@ export const filters = new Collection([{
76
85
id : 'filter:stringEnds' ,
77
86
label : 'Ends with' ,
78
87
i18nKey : 'filters.endsWith' ,
88
+ // i18next.t('filters.endsWith', 'Ends with');
79
89
uris : false ,
80
90
literals : true ,
81
91
restrict : [ xsd . string ] ,
@@ -84,6 +94,7 @@ export const filters = new Collection([{
84
94
id : 'filter:stringContains' ,
85
95
label : 'Contains' ,
86
96
i18nKey : 'filters.contains' ,
97
+ // i18next.t('filters.contains', 'Contains');
87
98
uris : false ,
88
99
literals : true ,
89
100
restrict : [ xsd . string ] ,
@@ -92,6 +103,7 @@ export const filters = new Collection([{
92
103
id : 'filter:regex' ,
93
104
label : 'Matches regular expression' ,
94
105
i18nKey : 'filters.matchRegex' ,
106
+ // i18next.t('filters.matchRegex', 'Matches regular expression');
95
107
uris : false ,
96
108
literals : true ,
97
109
restrict : [ xsd . string ] ,
@@ -100,18 +112,22 @@ export const filters = new Collection([{
100
112
101
113
export const groupLabels = new Collection ( [ {
102
114
id : 'logic' ,
115
+ // i18next.t('filters.groupLogic', 'apply logic');
103
116
label : 'apply logic' ,
104
117
i18nKey : 'filters.groupLogic' ,
105
118
} , {
106
119
id : 'filter' ,
120
+ // i18next.t('filters.groupFilters', 'apply filter');
107
121
label : 'apply filter' ,
108
122
i18nKey : 'filters.groupFilters' ,
109
123
} , {
110
124
id : 'type' ,
125
+ // i18next.t('filters.groupType', 'expect type');
111
126
label : 'expect type' ,
112
127
i18nKey : 'filters.groupType' ,
113
128
} , {
114
129
id : 'predicate' ,
130
+ // i18next.t('filters.groupPredicates', 'traverse predicate');
115
131
label : 'traverse predicate' ,
116
132
i18nKey : 'filters.groupPredicates' ,
117
133
} ] ) ;
0 commit comments