Skip to content

Commit

Permalink
🐛 Fix footer copyright translate
Browse files Browse the repository at this point in the history
  • Loading branch information
yanyongyu authored Sep 12, 2023
1 parent 4fb373e commit be1efa8
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions packages/theme-nonepress/src/theme/Footer/Copyright/index.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React from "react";

import Link from "@docusaurus/Link";
import { translate } from "@docusaurus/Translate";
import Translate, { translate } from "@docusaurus/Translate";

import type { Props } from "@theme/Footer/Copyright";
import IconDocusaurus from "@theme/Icon/Docusaurus";
Expand All @@ -16,7 +16,12 @@ export default function FooterCopyright({ copyright }: Props): JSX.Element {
dangerouslySetInnerHTML={{ __html: copyright }}
/>
<div className="footer-support">
Powered by
<Translate
id="theme.FooterCopyright.powerMessage"
description="The powered by message of footer copyright"
>
Powered by
</Translate>
<Link
to="https://docusaurus.io/"
title={translate({
Expand Down

0 comments on commit be1efa8

Please sign in to comment.