-
Notifications
You must be signed in to change notification settings - Fork 4.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore(feat): localize 404 page (fix #1987) #2004
Closed
Closed
Changes from all commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
c691d8e
chore(feat): localize 404 page (fix #1987)
91cdec9
docs(i18n): add missing field
114b5da
style: use simple quotes for notfound messages
893ccdd
chore(feat): localize core NotFound component
6055fda
docs: add notfound default messages
904279b
style: use double quotes for messages with escaped content
44ac63c
Merge branch 'master' into feat/localized-notfound-page
meteorlxy fe1c9e4
chore: lint code and add zh translation
meteorlxy ef1f1fb
chore: add zh translation
meteorlxy be17f34
chore: tweaks
meteorlxy 5a39452
Revert NotFound.vue
meteorlxy 15f6feb
fix: avoid ssr for 404 page
sybers File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -42,6 +42,13 @@ module.exports = ctx => ({ | |
selectText: 'Languages', | ||
ariaLabel: 'Select language', | ||
editLinkText: 'Edit this page on GitHub', | ||
notFoundLinkText: 'Take me home.', | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I don't think we need to set this for the |
||
notFoundMessages: [ | ||
sybers marked this conversation as resolved.
Show resolved
Hide resolved
|
||
`There's nothing here.`, | ||
`How did we get here?`, | ||
`That's a Four-Oh-Four.`, | ||
`Looks like we've got some broken links.` | ||
], | ||
lastUpdated: 'Last Updated', | ||
nav: require('./nav/en'), | ||
sidebar: { | ||
|
@@ -56,6 +63,13 @@ module.exports = ctx => ({ | |
selectText: '选择语言', | ||
ariaLabel: '选择语言', | ||
editLinkText: '在 GitHub 上编辑此页', | ||
notFoundLinkText: '返回首页', | ||
notFoundMessages: [ | ||
sybers marked this conversation as resolved.
Show resolved
Hide resolved
|
||
'这里什么都没有。', | ||
'你怎么到这来了?', | ||
'这是一个 404 页面。', | ||
'看起来这是一个错误的链接。' | ||
], | ||
lastUpdated: '上次更新', | ||
nav: require('./nav/zh'), | ||
sidebar: { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What are you trying to solve with this condition? When would
this.$page.path
not be defined?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@dzetah ?