Skip to content

Commit

Permalink
fix translation on Select
Browse files Browse the repository at this point in the history
  • Loading branch information
baudelotphilippe committed Sep 26, 2024
1 parent 4717fe1 commit bfa0dc9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ export function ApiFilter({

const options: readonly VersionOption[] = [
...availableApiVersions.map((iss) => ({ value: iss, label: `Version : ${iss}` })),
{ value: 'all version', label: 'All version' },
{ value: 'all version', label: `${translate('All version')}` },
]

return (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@ export function ApiIssue({
const [api, setRootApi] = useState<IApi>();

const [filter, setFilter] = useState('open');
const [selectedVersion, setSelectedVersion] = useState({ value: 'all version', label: 'All version' });

const { translate } = useContext(I18nContext);

const [selectedVersion, setSelectedVersion] = useState({ value: 'all version', label: `${translate('All version')}` });

useEffect(() => {
Services.getRootApi(props.api._humanReadableId)
Expand Down

0 comments on commit bfa0dc9

Please sign in to comment.