book-translation

Translate MDX chapters and UI strings into a new locale.

Updated Dec 1, 2025
One-click install
npx skills add https://github.com/stevessr/dotsfiles --skill book-translation
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: book-translation
Source: https://github.com/stevessr/dotsfiles/tree/main/dot_claude/private_plugins/private_marketplaces/prompts.chat/dot_windsurf/skills/book-translation
Command: npx skills add https://github.com/stevessr/dotsfiles --skill book-translation

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Translating The Interactive Book of Prompting into a new language to make the content accessible to non-English readers and learners.

Core Features & Use Cases

  • Localized content: Translate MDX chapter content from src/content/book/{locale}/ to the target locale.
  • UI & metadata translation: Localize UI strings and chapter titles in messages/{locale}.json and adjust descriptions in book metadata.
  • Structured workflow: Copy an existing base locale (e.g., tr) and adapt it to the new locale, registering the locale in the locale data files.
  • Quality assurance: Verify translations via the provided project structure and ensure imports and references remain intact.

Quick Start

Copy the Turkish base as a starting point, then translate the MDX content and JSON keys to the target language and register the new locale in the locale files.

Frequently Asked Questions about book-translation

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I translate MDX content into a new language for a multilingual documentation project?

To translate MDX content into a new language, you copy an existing base locale directory like src/content/book/{locale}/ and adapt the prose while preserving the structural syntax. This ensures the localized interactive book content renders correctly in the target language.

What is the best way to localize UI strings and JSON metadata for a multilingual book?

Localizing UI strings and JSON metadata involves translating the key values in messages/{locale}.json. You adjust chapter titles and descriptions in the book metadata to match the target locale, ensuring the interface displays correctly for non-English readers.

How do I register a new locale in a multilingual MDX project structure?

To register a new locale, you add the target locale configuration to src/components/book/elements/locales/{locale}.ts and update the index.ts file. This integrates the translated MDX chapters and JSON strings into the active project structure.

Can I use an existing language base like Turkish to start my MDX translation workflow?

Yes, you can use an existing language base like Turkish to start your MDX translation workflow. Copying the Turkish base provides a structured starting point, allowing you to translate the prose and JSON keys into the target language efficiently.

Why does my translated MDX chapter break after localizing the content?

Translated MDX chapters break when structural syntax or import references are accidentally modified during prose translation. Quality assurance requires verifying that all imports and structural references remain intact while adapting the text for the target locale.

What do I need to localize The Interactive Book of Prompting for non-English readers?

To localize The Interactive Book of Prompting, you need to translate the MDX chapter content and UI JSON strings, then register the locale in the configuration files. This workflow makes the educational content accessible to non-English learners.