Commit f90a6f1d authored by Elisabeth Reuhl's avatar Elisabeth Reuhl
Browse files

fixup! i18n: create translation ability, add German translations for...

fixup! i18n: create translation ability, add German translations for entityTypes (related to issue #81)
parent b35cf8be
......@@ -188,6 +188,8 @@ export const AppContent = () => {
console.error(error)
});
//todo: change out translation keys for English terms, e.g. "Images" instead of "arachneTypeBilder" – because these
// keys will be shown as default if no translation exists
const arachneTypes = [ //todo: welche davon sollen angeboten werden? einige gibt es gar nicht für SPP/Afrika nehme ich an.
{"label": t("arachneTypeEinzelobjekte"), "id": "Einzelobjekte"},
{"label": t("arachneTypeMehrteilige Denkmäler"), "id": "MehrteiligeDenkmaeler"},
......
......@@ -15,7 +15,7 @@ import SearchIcon from '@material-ui/icons/Search';
export const PageHeader = (props) => {
const [input, dispatch] = props.reducer;
const {periods, regions} = props;
const {arachneTypes, periods, regions} = props;
const { t, i18n } = useTranslation();
......@@ -146,6 +146,7 @@ export const PageHeader = (props) => {
<SearchIcon/> Close filters <ExpandLessIcon/>
</Button>
<Filters
arachneTypes={arachneTypes}
periods={periods}
reducer={[input, dispatch]}
regions={regions}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment