Fixed translations (#2627)

This commit is contained in:
Erik Jan de Wit 2022-05-13 12:34:27 +02:00 committed by GitHub
parent 5a18c76d75
commit 1bfee6425d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -18,7 +18,7 @@ import { useUserProfile } from "./UserProfileContext";
export const AttributesGroupTab = () => {
const { config, save } = useUserProfile();
const { t } = useTranslation();
const { t } = useTranslation("attributes-group");
const history = useHistory();
const { realm } = useRealm();
const [key, setKey] = useState(0);
@ -75,7 +75,7 @@ export const AttributesGroupTab = () => {
<Link {...props} to={toNewAttributesGroup({ realm })} />
)}
>
{t("attributes-group:createGroupText")}
{t("createGroupText")}
</Button>
</ToolbarItem>
}
@ -106,9 +106,9 @@ export const AttributesGroupTab = () => {
]}
emptyState={
<ListEmptyState
message={t("attributes-group:emptyStateMessage")}
instructions={t("attributes-group:emptyStateInstructions")}
primaryActionText={t("attributes-group:createGroupText")}
message={t("emptyStateMessage")}
instructions={t("emptyStateInstructions")}
primaryActionText={t("createGroupText")}
onPrimaryAction={() =>
history.push(toNewAttributesGroup({ realm }))
}