Skip to content
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

fix(docs): links in Chinese translation #1206

Merged
merged 2 commits into from
Dec 18, 2024
Merged

fix(docs): links in Chinese translation #1206

merged 2 commits into from
Dec 18, 2024

Conversation

novusnota
Copy link
Member

@novusnota novusnota commented Dec 18, 2024

This:

  1. rg '\]: /' -r ']: /zh-ch/ to find all the []: /... links for their further replacement
  2. rg --files 'zh-cn/**/*.mdx' | xargs sd -p, then copy-paste both '...' from step 1.

And this:

  1. rg '\]\((/.*?\))' -r '](/zh-cn$1' to find all the [](/...) links for their further replacement
  2. rg --files 'zh-cn/**/*.mdx' | xargs sd -p, then copy-paste both '...' from step 1.

Where rg is the ripgrep, which never modifies any files, and sd is, well, sd (not sed!). Since both use the same RegExp engine, they're quite convenient to use together.

Issue

Closes #1205.

Checklist

  • I have updated CHANGELOG.md
  • I have run the linter, formatter and spellchecker
  • I did not do unrelated and/or undiscussed refactorings

@novusnota novusnota added this to the Doc: 2024-12 milestone Dec 18, 2024
@novusnota novusnota requested a review from a team as a code owner December 18, 2024 09:29
@anton-trunov anton-trunov self-assigned this Dec 18, 2024
@anton-trunov anton-trunov merged commit 45a006b into main Dec 18, 2024
21 checks passed
@anton-trunov anton-trunov deleted the zh-ch-fix branch December 18, 2024 09:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Docs: Mandarin translation links to English pages
2 participants