Skip to content

feat: localize tutorials index + steemgosdk pages for all 7 locales (T7-2) - #52

Merged
ety001 merged 1 commit into
masterfrom
feat/t72-tutorials-gosdk
Nov 3, 2026
Merged

ety001 merged 1 commit into
masterfrom
feat/t72-tutorials-gosdk

Conversation

@ety001

@ety001 ety001 commented Nov 3, 2026

Copy link
Copy Markdown
Member

T7-2: localize tutorials index + steemgosdk pages (7 locales)

Part of phase 7 (tutorials chapter localization). Branch: feat/t72-tutorials-gosdk, based on master @ 15415fa (T7-1 en pages).

What's in this PR

  • 28 new pages (4 pages × 7 locales: zh, ru, fr, de, it, es, ko):
    • docs/<lc>/tutorials/index.md ← docs/tutorials/index.md
    • docs/<lc>/tutorials/steemgosdk/index.md ← docs/tutorials/steemgosdk/index.md
    • docs/<lc>/tutorials/steemgosdk/broadcast.md ← docs/tutorials/steemgosdk/broadcast.md
    • docs/<lc>/tutorials/steemgosdk/signed-call.md ← docs/tutorials/steemgosdk/signed-call.md
  • docs/.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

  • Code fences are byte-identical to the en sources. Fence segments were extracted programmatically and re-assembled, never re-typed. Machine audit across all 28 pages: per-page fence count equals the en page (0 / 20 / 14 / 20 for index / gosdk index / broadcast / signed-call), and every fence — including Go comments and the one bash fence — is byte-for-byte identical.
  • Prose translated per the frozen docs/.vitepress/<lc>-glossary.json baselines (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.
  • In-site links: sibling tutorial links rewritten to /<lc>/tutorials/..., API reference links to /<lc>/api/... (.html forms preserved as in en); external links (GitHub repos, steem-uri-spec) untouched.
  • En sources untouched (git show --stat: 29 files, all additions + config.mts).
  • steemgosdk/signed-call.md has 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

  1. Fence audit (scripted): PASS — 28/28 pages, fence counts equal en, all fence segments byte-identical.
  2. Link audit (scripted): zero remaining un-localized /tutorials/ or /api/ links in the 28 new pages; external links preserved.
  3. Build: 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-bash where expected).
  4. No secrets/sanitization concerns (public docs repo; the example WIF keys are the well-known public test keys already present in en).

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:

ignoreDeadLinks: [/^\/(zh|ru|fr|de|it|es|ko)\/tutorials\/steem-js\//],

It is top-level (VitePress 1.6.4 only reads ignoreDeadLinks from 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.

…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.
@ety001
ety001 merged commit 8a10ad6 into master Nov 3, 2026
1 check passed
@ety001
ety001 deleted the feat/t72-tutorials-gosdk branch November 3, 2026 22:03
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.

1 participant