Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
A
ant-design-pro
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
duanledexianxianxian
ant-design-pro
Commits
ac4dfc12
Commit
ac4dfc12
authored
Jul 12, 2018
by
张秀玲
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
translate exception pages
parent
57fb525e
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
56 additions
and
12 deletions
+56
-12
src/locales/en-US.js
src/locales/en-US.js
+4
-0
src/locales/zh-CN.js
src/locales/zh-CN.js
+4
-0
src/pages/Exception/403.js
src/pages/Exception/403.js
+16
-4
src/pages/Exception/404.js
src/pages/Exception/404.js
+16
-4
src/pages/Exception/500.js
src/pages/Exception/500.js
+16
-4
No files found.
src/locales/en-US.js
View file @
ac4dfc12
...
...
@@ -121,4 +121,8 @@ export default {
'
The to-do list will be notified in the form of a letter from the station
'
,
'
app.settings.open
'
:
'
Open
'
,
'
app.settings.close
'
:
'
Close
'
,
'
app.exception.back
'
:
'
Back to home
'
,
'
app.exception.description.403
'
:
"
Sorry, you don't have access to this page
"
,
'
app.exception.description.404
'
:
'
Sorry, the page you visited does not exist
'
,
'
app.exception.description.500
'
:
'
Sorry, the server is reporting an error
'
,
};
src/locales/zh-CN.js
View file @
ac4dfc12
...
...
@@ -117,4 +117,8 @@ export default {
'
app.settings.notification.todo-description
'
:
'
账户密码
'
,
'
app.settings.open
'
:
'
开
'
,
'
app.settings.close
'
:
'
关
'
,
'
app.exception.back
'
:
'
返回首页
'
,
'
app.exception.description.403
'
:
'
抱歉,你无权访问该页面
'
,
'
app.exception.description.404
'
:
'
抱歉,你访问的页面不存在
'
,
'
app.exception.description.500
'
:
'
抱歉,服务器出错了
'
,
};
src/pages/Exception/403.js
View file @
ac4dfc12
import
React
from
'
react
'
;
import
React
,
{
Component
}
from
'
react
'
;
import
{
injectIntl
}
from
'
react-intl
'
;
import
{
Link
}
from
'
dva/router
'
;
import
Exception
from
'
components/Exception
'
;
export
default
()
=>
(
<
Exception
type
=
"
403
"
style
=
{{
minHeight
:
500
,
height
:
'
80%
'
}}
linkElement
=
{
Link
}
/
>
);
class
Exception403
extends
Component
{
render
()
{
const
{
intl
}
=
this
.
props
;
return
(
<
Exception
type
=
"
403
"
desc
=
{
intl
.
formatMessage
({
id
:
'
app.exception.description.403
'
},
{})}
style
=
{{
minHeight
:
500
,
height
:
'
80%
'
}}
linkElement
=
{
Link
}
/
>
);
}
}
export
default
injectIntl
(
Exception403
);
src/pages/Exception/404.js
View file @
ac4dfc12
import
React
from
'
react
'
;
import
React
,
{
Component
}
from
'
react
'
;
import
{
injectIntl
}
from
'
react-intl
'
;
import
{
Link
}
from
'
dva/router
'
;
import
Exception
from
'
components/Exception
'
;
export
default
()
=>
(
<
Exception
type
=
"
404
"
style
=
{{
minHeight
:
500
,
height
:
'
80%
'
}}
linkElement
=
{
Link
}
/
>
);
class
Exception404
extends
Component
{
render
()
{
const
{
intl
}
=
this
.
props
;
return
(
<
Exception
type
=
"
404
"
desc
=
{
intl
.
formatMessage
({
id
:
'
app.exception.description.404
'
},
{})}
style
=
{{
minHeight
:
500
,
height
:
'
80%
'
}}
linkElement
=
{
Link
}
/
>
);
}
}
export
default
injectIntl
(
Exception404
);
src/pages/Exception/500.js
View file @
ac4dfc12
import
React
from
'
react
'
;
import
React
,
{
Component
}
from
'
react
'
;
import
{
injectIntl
}
from
'
react-intl
'
;
import
{
Link
}
from
'
dva/router
'
;
import
Exception
from
'
components/Exception
'
;
export
default
()
=>
(
<
Exception
type
=
"
500
"
style
=
{{
minHeight
:
500
,
height
:
'
80%
'
}}
linkElement
=
{
Link
}
/
>
);
class
Exception500
extends
Component
{
render
()
{
const
{
intl
}
=
this
.
props
;
return
(
<
Exception
type
=
"
500
"
desc
=
{
intl
.
formatMessage
({
id
:
'
app.exception.description.500
'
},
{})}
style
=
{{
minHeight
:
500
,
height
:
'
80%
'
}}
linkElement
=
{
Link
}
/
>
);
}
}
export
default
injectIntl
(
Exception500
);
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