Skip to content

Commit

Permalink
Add translation for no options message in dropdown
Browse files Browse the repository at this point in the history
  • Loading branch information
Dennis Benz committed Jul 11, 2024
1 parent c78b04e commit 6edee86
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/shared/DropDown.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -82,11 +82,11 @@ const DropDown = <T,>({
{creatable ? (
<CreatableSelect
{...commonProps}
noOptionsMessage={() => "No matching results."}
/>
) : (
<Select
{...commonProps}
noOptionsMessage={() => t("SELECT_NO_MATCHING_RESULTS")}
/>
)}
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
"RESET": "Reset",
"SELECT_NO_OPTION_SELECTED": "No option selected",
"SELECT_NO_OPTIONS_AVAILABLE": "No options available",
"SELECT_NO_MATCHING_RESULTS": "No matching results.",
"YES": "Yes",
"COPY": "Copy to clipboard",
"UPDATE": {
Expand Down

0 comments on commit 6edee86

Please sign in to comment.