Skip to content

fix(i18n): restore the inheriting-royalties anchor on CJK Bubblegum V2 mint pages - #571

Merged
tonyboylehub merged 1 commit into
mainfrom
brandon/fix-bubblegum-cjk-royalty-anchors
Sep 25, 2026
Merged

tonyboylehub merged 1 commit into
mainfrom
brandon/fix-bubblegum-cjk-royalty-anchors

Conversation

@brandontulsi

Copy link
Copy Markdown
Contributor

Summary

The Heading anchors check has failed on main since #533. The check didn't run on that PR, so every PR that touches src/pages/** now inherits the failure (e.g. #570).

#533 added an FAQ answer to the ja/ko/zh bubblegum-v2/mint-cnfts.md pages that links to #inheriting-royalties-from-the-collection. Since #556, Japanese, Korean and Chinese headings take their anchor from the translated text (## 从集合继承版税 becomes #从集合继承版税), so that anchor doesn't exist on those pages.

  • Give the three translated headings an explicit id matching the English slug, e.g. ## 从集合继承版税 {% #inheriting-royalties-from-the-collection %}. The translated Bubblegum V2 pages already use this pattern, e.g. ja collections.md has ## 継承されたロイヤリティ {% #inherited-royalties %}.
  • This also fixes the 18 links from other ja/ko/zh Bubblegum V2 pages (collections.md, faq.md, hashed-nft-data.md, reading-inherited-royalties.md, sdk/javascript.md) to mint-cnfts#inheriting-royalties-from-the-collection. The audit doesn't report those because it only checks links within a page.

Pointing the three FAQ links at the translated anchors instead would pass the check but leave those 18 links broken.

Testing

  • pnpm run lint:anchors passes locally: 0 new broken links (452 in the baseline, down from 455).
  • next dev: each translated mint page renders the heading with id="inheriting-royalties-from-the-collection", and the FAQ link points to it.
  • markdownlint-cli2 on the changed pages passes.

Once this merges, PRs opened before it need their branch updated from main for the check to pass. Re-running the old check reuses the original merge commit.

…2 mint pages

#533 linked the ja/ko/zh FAQ answers to `#inheriting-royalties-from-the-collection`,
but since #556 those headings take their anchor from the translated text, so
the anchor did not exist and the Heading anchors check has failed on main
since. Give the three headings an explicit id matching the English slug. This
also fixes the 18 links from other ja/ko/zh Bubblegum V2 pages to that anchor.
@vercel

vercel Bot commented Sep 25, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
developer-hub Ready Ready Preview Sep 25, 2026 6:50pm UTC

Request Review

@coderabbitai

coderabbitai Bot commented Sep 25, 2026 •

Copy link
Copy Markdown
Contributor

Review in Change Stack →

Navigate logical layers of code changes, visualize relationships, and explore their blast radius.

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: ASSERTIVE

Plan: Essentials

Run ID: 3e3f8094-27d2-4206-bcd4-c862d42fa7c4

📥 Commits

Reviewing files that changed from the base of the PR and between b2bf7ba and fa7d234.

📒 Files selected for processing (3)
  • src/pages/ja/smart-contracts/bubblegum-v2/mint-cnfts.md
  • src/pages/ko/smart-contracts/bubblegum-v2/mint-cnfts.md
  • src/pages/zh/smart-contracts/bubblegum-v2/mint-cnfts.md

Included review availability: 3 reviews are currently available. Your included PR review attempts over the past 7 days set your current allowance at 5 reviews per hour.


Summary by CodeRabbit

  • Documentation
    • Added a consistent linkable heading for the collection royalty-inheritance section in Japanese and Korean documentation.
    • Expanded the Chinese documentation with details on inherited seller fees, DAS display behavior, SDK defaults, and collection and marketplace requirements.

Walkthrough

The Japanese and Korean Bubblegum V2 minting pages add an explicit anchor to the collection royalty inheritance heading. The Chinese page adds a section describing inherited royalties and related DAS and SDK requirements.

Changes

Localized collection royalty documentation

Layer / File(s) Summary
Collection royalty section
src/pages/ja/smart-contracts/bubblegum-v2/mint-cnfts.md, src/pages/ko/smart-contracts/bubblegum-v2/mint-cnfts.md, src/pages/zh/smart-contracts/bubblegum-v2/mint-cnfts.md
The Japanese and Korean headings gain the inheriting-royalties-from-the-collection anchor. The Chinese page adds a section describing the 65535 (0xffff) sentinel, DAS fields, SDK defaults, and related requirements.

Priority: ➖ Normal

Estimated code review effort: 1 (Trivial) | ~4 minutes

Change: Bug fix

Suggested reviewers: marksackerberg

Merge Risk: ⚪ Minimal · up to fa7d2

The translated pages restore the intended heading targets, and the new Chinese guidance is consistent with the repository documentation. No concrete issue remains; the PR is ready to merge subject to normal checks.

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description check ✅ Passed The description clearly explains the missing anchor, the affected translated pages, the related broken links, and the validation performed.
Title check ✅ Passed The title clearly identifies the internationalization fix and the restored anchor on the affected Bubblegum V2 mint pages.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff. Analyzed 0 functions across 0…
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Commit to this branch
  • Create a new PR

Comment @coderabbitai help to get the list of available commands.

@tonyboylehub
tonyboylehub merged commit 8d4aa72 into main Sep 25, 2026
4 checks passed
@brandontulsi
brandontulsi deleted the brandon/fix-bubblegum-cjk-royalty-anchors branch September 25, 2026 18:58

This branch was successfully deployed

1 active deployment
Preview — fa7d234e Deployed Sep 25, 2026 by vercel[bot]
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.

2 participants