Add labels for columns type (#435)

This commit is contained in:
Louis Delbosc 2023-03-02 15:12:49 +01:00 committed by GitHub
parent 5af2cd4ef7
commit 7a82aa1ac7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 14 additions and 2 deletions

View File

@ -150,7 +150,7 @@ export function select<T>(obs: Observable<T>, optionArray: MaybeObsArray<IOption
return weasel.select(obs, optionArray, selectOptions, (op) =>
cssOptionRow(
op.icon ? cssOptionRowIcon(op.icon) : null,
cssOptionLabel(op.label),
cssOptionLabel(t(op.label)),
renderOptionArgs ? renderOptionArgs(op) : null,
testId('select-row')
)

View File

@ -751,7 +751,19 @@
"menus": {
"* Workspaces are available on team plans. ": "* Workspaces are available on team plans. ",
"Select fields": "Select fields",
"Upgrade now": "Upgrade now"
"Upgrade now": "Upgrade now",
"Any": "Any",
"Numeric": "Numeric",
"Text": "Text",
"Integer": "Integer",
"Toggle": "Toggle",
"Date": "Date",
"DateTime": "DateTime",
"Choice": "Choice",
"Choice List": "Choice List",
"Reference": "Reference",
"Reference List": "Reference List",
"Attachment": "Attachment"
},
"modals": {
"Cancel": "Cancel",