Add field description+label translations (#9899)
Add translations for field descriptions
This commit is contained in:
@ -1,5 +1,7 @@
|
||||
import { msg } from '@lingui/core/macro';
|
||||
|
||||
export const SEARCH_VECTOR_FIELD = {
|
||||
name: 'searchVector',
|
||||
label: 'Search vector',
|
||||
description: 'Field used for full-text search',
|
||||
label: msg`Search vector`,
|
||||
description: msg`Field used for full-text search`,
|
||||
} as const;
|
||||
|
||||
@ -56,8 +56,8 @@ export class SearchService {
|
||||
isSystem: true,
|
||||
type: FieldMetadataType.TS_VECTOR,
|
||||
name: SEARCH_VECTOR_FIELD.name,
|
||||
label: SEARCH_VECTOR_FIELD.label,
|
||||
description: SEARCH_VECTOR_FIELD.description,
|
||||
label: SEARCH_VECTOR_FIELD.label.message ?? '',
|
||||
description: SEARCH_VECTOR_FIELD.description.message ?? '',
|
||||
isNullable: true,
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user