Repository navigation
feat: localize tutorials index + steemgosdk pages for all 7 locales (T7-2) - #52
Merged
Merged
Conversation
…T7-2)
Translate docs/tutorials/index.md and docs/tutorials/steemgosdk/
{index,broadcast,signed-call}.md into zh/ru/fr/de/it/es/ko (4 pages x 7
locales = 28 new pages). Code fences are copied byte-for-byte from the
en sources (per-page fence audit: counts and contents identical);
prose is translated following the frozen <locale>-glossary.json
baselines, with codenames (steemgosdk, steem-js, JSON-RPC, SignedCall,
STEEM, SBD, WIF...) untranslated and method/param/field names kept in
English. In-site links follow the phase-6 convention: sibling tutorial
links become /<lc>/tutorials/... and API reference links become
/<lc>/api/.... En pages are untouched.
Each locale sidebar gains a Tutorials group (between Guides and
Services, mirroring the en root) carrying this task's entries:
Overview + steemgosdk (Go) x3. The steem-js entries are left for the
parallel task that ships those mirror pages.
The localized pages cross-link the steem-js mirrors, which land in a
separate PR, so a narrowly-scoped transitional ignoreDeadLinks pattern
(/^(zh|ru|fr|de|it|es|ko)\/tutorials\/steem-js\//) keeps the build
green on this branch; it should be removed once those mirrors merge.
Note: docs/tutorials/steemgosdk/signed-call.md has no frontmatter in
en (title comes from the sidebar config), and the localized copies
preserve that shape.
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
T7-2: localize tutorials index + steemgosdk pages (7 locales)
Part of phase 7 (tutorials chapter localization). Branch:
feat/t72-tutorials-gosdk, based onmaster@ 15415fa (T7-1 en pages).What's in this PR
docs/<lc>/tutorials/index.md←docs/tutorials/index.mddocs/<lc>/tutorials/steemgosdk/index.md←docs/tutorials/steemgosdk/index.mddocs/<lc>/tutorials/steemgosdk/broadcast.md←docs/tutorials/steemgosdk/broadcast.mddocs/<lc>/tutorials/steemgosdk/signed-call.md←docs/tutorials/steemgosdk/signed-call.mddocs/.vitepress/config.mts: each locale sidebar gains a Tutorials group (positioned after Guides, before Services, mirroring the en root) with this task's four entries: Overview + steemgosdk (Go) × 3. The steem-js entries are intentionally left for the parallel task shipping those mirror pages. The en root sidebar is untouched.Content discipline
bashfence — is byte-for-byte identical.docs/.vitepress/<lc>-glossary.jsonbaselines (witness/post/transaction/transfer/keys/feed price/etc. per-table); codenames (steemgosdk, steem-js, JSON-RPC, SignedCall, STEEM, SBD, WIF, custom_json) untranslated; method/param/field names kept in English; first-occurrence "translation (English)" annotations used per locale conventions./<lc>/tutorials/..., API reference links to/<lc>/api/...(.htmlforms preserved as in en); external links (GitHub repos, steem-uri-spec) untouched.git show --stat: 29 files, all additions + config.mts).steemgosdk/signed-call.mdhas no frontmatter in en (its title lives in the sidebar config); localized copies preserve that shape, defects (duplicated##section headers in the en sources) included, per the phase-6 rule of keeping source quirks.Verification
/tutorials/or/api/links in the 28 new pages; external links preserved.NODE_OPTIONS=--max-old-space-size=8192 pnpm build→ exit 0. All 28 pages render (spot-checked<title>in dist for zh/ko/ru; fence counts in rendered HTML match: 20 ×language-go+ 1 ×language-bashwhere expected).One thing for the reviewer/controller
The localized pages cross-link their sibling steem-js mirror pages (
/<lc>/tutorials/steem-js/...) per the phase-7 link convention — those mirrors land in the parallel phase-7 PR, so on this branch alone VitePress sees 42 dead links. A narrowly-scoped transitional option was added to keep the build green:It is top-level (VitePress 1.6.4 only reads
ignoreDeadLinksfrom the top-level config, not per-locale themeConfig) and matches nothing except those transitional cross-links. Remove it once the steem-js mirror pages merge. After all phase-7 branches merge, every link resolves.Do not merge until the parallel phase-7 PRs are reconciled by the controller.