fix: footer add i18n

This commit is contained in:
shuai 2022-10-09 10:42:32 +08:00 committed by mingcheng
parent efa4b3ab69
commit 3e292d9b34
3 changed files with 15 additions and 6 deletions

View File

@ -1,16 +1,19 @@
import React from 'react';
import { Container } from 'react-bootstrap';
import { Trans } from 'react-i18next';
const Index = () => {
return (
<footer className="bg-light py-3">
<Container>
<p className="text-center mb-0 fs-14 text-secondary">
Built on
<a href="/"> Answer </a>
- the open source source software that power knowledge communities.
<br />
Made with love. © 2022 Answer .
<Trans i18nKey="footer.build_on">
Built on
<a href="/"> Answer </a>
- the open source source software that power knowledge communities.
<br />
Made with love. © 2022 Answer .
</Trans>
</p>
</Container>
</footer>

View File

@ -397,6 +397,9 @@
"placeholder": "Search"
}
},
"footer": {
"build_on": "Build on <1> Answer </1>- the open source source software that power knowledge communities.<br />Made with love. © 2022 Answer."
},
"upload_img": {
"name": "Change",
"loading": "loading..."
@ -842,4 +845,4 @@
}
}
}
}
}

View File

@ -55,5 +55,8 @@
"different": "两次输入密码不一致"
}
}
},
"footer": {
"build_on": "由 <1> Answer </1>构建- 为知识社区提供动力的开源软件.<br />Made with love. © 2022 Answer ."
}
}