fix(docs): versioning CLI should copy localized translation file current.json
to version-<v>.json
#10875
+36
−0
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.
Pre-flight checklist
Motivation
When tagging a new version in a site where both i18n and versioning are applied, the i18n resource file for the tagged version is not created and the user must create it manually.
version-{version_number}.json
) is created based oncurrent.json
.Test Plan
I verified that the changes work by installing it from a local Docusaurus repo on the Docusaurus website code itself, enabling i18n for one of the localized languages, and tagging a new version with the CLI.
Test links
N/A (The code change is related to CLI, which is non-UI related.)
Related issues/PRs
N/A