Trying to chase missing translations (#3441)

This commit is contained in:
Limezy
2022-05-18 03:01:00 +07:00
committed by GitHub
parent 19de348c85
commit 5658090d7e
9 changed files with 50 additions and 24 deletions

View File

@@ -1,4 +1,5 @@
import * as React from "react";
import { useTranslation } from "react-i18next";
import styled from "styled-components";
import breakpoint from "styled-components-breakpoint";
import Text from "~/components/Text";
@@ -48,11 +49,12 @@ export default function Contents({ headings, isFullWidth }: Props) {
Infinity
);
const headingAdjustment = minHeading - 1;
const { t } = useTranslation();
return (
<Wrapper isFullWidth={isFullWidth}>
<Sticky>
<Heading>Contents</Heading>
<Heading>{t("Contents")}</Heading>
{headings.length ? (
<List>
{headings.map((heading) => (
@@ -66,7 +68,9 @@ export default function Contents({ headings, isFullWidth }: Props) {
))}
</List>
) : (
<Empty>Headings you add to the document will appear here</Empty>
<Empty>
{t("Headings you add to the document will appear here")}
</Empty>
)}
</Sticky>
</Wrapper>