diff --git a/daikoku/javascript/src/components/frontend/api/issues/ApiFilter.tsx b/daikoku/javascript/src/components/frontend/api/issues/ApiFilter.tsx index 9ea27c7dc..97bf7c6d1 100644 --- a/daikoku/javascript/src/components/frontend/api/issues/ApiFilter.tsx +++ b/daikoku/javascript/src/components/frontend/api/issues/ApiFilter.tsx @@ -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 ( diff --git a/daikoku/javascript/src/components/frontend/api/issues/ApiIssue.tsx b/daikoku/javascript/src/components/frontend/api/issues/ApiIssue.tsx index 170397e30..d7ca15846 100644 --- a/daikoku/javascript/src/components/frontend/api/issues/ApiIssue.tsx +++ b/daikoku/javascript/src/components/frontend/api/issues/ApiIssue.tsx @@ -18,9 +18,9 @@ export function ApiIssue({ const [api, setRootApi] = useState(); 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)