@@ -196,6 +196,8 @@ import {
196
196
import { CustomError , inputProps } from ' ../../../../common' ;
197
197
import { useLang } from ' ../../../../lang' ;
198
198
199
+ const lang = useLang ();
200
+
199
201
const connectionStore = useConnectionStore ();
200
202
201
203
const { fetchIndices } = connectionStore ;
@@ -210,24 +212,23 @@ const { dynamoData } = storeToRefs(dbDataStore);
210
212
211
213
const dynamoQueryFormRef = ref ();
212
214
const filterConditions = ref ([
213
- { label: ' = ' , value: ' =' },
214
- { label: ' != ' , value: ' !=' },
215
- { label: ' <= ' , value: ' <=' },
216
- { label: ' < ' , value: ' <' },
217
- { label: ' >= ' , value: ' >=' },
218
- { label: ' > ' , value: ' >' },
219
- { label: ' Between ' , value: ' between' },
220
- { label: ' Exists ' , value: ' attribute_exists' },
221
- { label: ' Not exists ' , value: ' attribute_not_exists' },
222
- { label: ' Contain ' , value: ' contains' },
223
- { label: ' Not contain ' , value: ' not contain' },
224
- { label: ' Begins with ' , value: ' begins_with' },
215
+ { label: lang . t ( ' editor.dynamo.filterLabels.eq ' ) , value: ' =' },
216
+ { label: lang . t ( ' editor.dynamo.filterLabels.ne ' ) , value: ' !=' },
217
+ { label: lang . t ( ' editor.dynamo.filterLabels.lte ' ) , value: ' <=' },
218
+ { label: lang . t ( ' editor.dynamo.filterLabels.lt ' ) , value: ' <' },
219
+ { label: lang . t ( ' editor.dynamo.filterLabels.gte ' ) , value: ' >=' },
220
+ { label: lang . t ( ' editor.dynamo.filterLabels.gt ' ) , value: ' >' },
221
+ { label: lang . t ( ' editor.dynamo.filterLabels.between ' ) , value: ' between' },
222
+ { label: lang . t ( ' editor.dynamo.filterLabels.exists ' ) , value: ' attribute_exists' },
223
+ { label: lang . t ( ' editor.dynamo.filterLabels.notExists ' ) , value: ' attribute_not_exists' },
224
+ { label: lang . t ( ' editor.dynamo.filterLabels.contains ' ) , value: ' contains' },
225
+ { label: lang . t ( ' editor.dynamo.filterLabels.notContains ' ) , value: ' not contain' },
226
+ { label: lang . t ( ' editor.dynamo.filterLabels.beginsWith ' ) , value: ' begins_with' },
225
227
]);
226
228
227
229
const loadingRef = ref ({ index: false , queryResult: false });
228
230
229
231
const message = useMessage ();
230
- const lang = useLang ();
231
232
232
233
const dynamoQueryForm = ref <{
233
234
index: string | null ;
0 commit comments