Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
A
ai-box
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
青山
ai-box
Commits
de3d14be
Commit
de3d14be
authored
Sep 24, 2024
by
fisherdaddy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
chore: footer support multilanguage
parent
5b28b20a
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
1 deletion
+16
-1
Footer.jsx
src/components/Footer.jsx
+4
-1
i18n.js
src/js/i18n.js
+12
-0
No files found.
src/components/Footer.jsx
View file @
de3d14be
import
React
from
'react'
;
import
{
useTranslation
}
from
'../js/i18n'
;
function
Footer
()
{
const
{
t
}
=
useTranslation
();
return
(
<
footer
>
<
p
>
©
2024
AI 工具箱. 保留所有权利。
</
p
>
<
p
>
©
2024
{
t
(
'footer.copyRight'
)
}
</
p
>
</
footer
>
);
}
...
...
src/js/i18n.js
View file @
de3d14be
...
...
@@ -33,6 +33,9 @@ const i18n = {
title
:
'404 - Page Not Found'
,
description
:
'Sorry, the page you are looking for does not exist.'
,
back_home
:
'Back to Home'
},
footer
:
{
copyRight
:
'AI Toolbox. All rights reserved.'
}
},
zh
:
{
...
...
@@ -67,6 +70,9 @@ const i18n = {
title
:
'404 - 页面未找到'
,
description
:
'抱歉,您访问的页面不存在。'
,
back_home
:
'返回首页'
},
footer
:
{
copyRight
:
'AI 工具箱. 保留所有权利。'
}
},
ja
:
{
...
...
@@ -101,6 +107,9 @@ const i18n = {
title
:
'404 - ページが見つかりません'
,
description
:
'申し訳ありませんが、お探しのページは存在しません。'
,
back_home
:
'ホームに戻る'
},
footer
:
{
copyRight
:
'AIツールボックス. すべての権利を保有します。'
}
},
ko
:
{
...
...
@@ -135,6 +144,9 @@ const i18n = {
title
:
'404 - 페이지를 찾을 수 없습니다'
,
description
:
'죄송합니다. 찾고 있는 페이지가 존재하지 않습니다.'
,
back_home
:
'홈으로 돌아가기'
},
footer
:
{
copyRight
:
'AI 도구 상자. 모든 권리 보유.'
}
},
};
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment