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.
Related issue
#2648
Description of changes
This PR is to integrate i18n router as a foundation of further i18n integration and should have no breaking change. There seem to have two different type of documentation in terms of translation system - 1) html files with content json 2) mdx files; The scope of this PR is for the first one and I will make PR for automated mdx converting once we align on this router.
i18n router has two features - 1) Use
en
as a default locale and change nothing with the current website 2) Use local as a prefix for path and router automatically handle routing. Nothing happens if there is no translated resources.Screenshots
Use
en
as a default localhttps://localhost:3000/
Use
ja
as a prefix for pathhttps://localhost:3000/ja/
Use
en
content when translation does not existhttps://localhost:3000/ja/cli/