Loading...
Loading...
Translate "The Interactive Book of Prompting" chapters and UI strings to a new language
npx skill4agent add f/prompts.chat book-translationsrc/content/book/{locale}/messages/{locale}.jsondefresjakozhmessages/src/content/book/{locale}/trmkdir -p src/content/book/{locale}
cp -r src/content/book/*.mdx src/content/book/{locale}/
cp src/components/book/elements/locales/en.ts src/components/book/elements/locales/{locale}.tssrc/components/book/elements/locales/index.tsimport {locale} from "./{locale}";locales{locale},export { en, tr, az, {locale} };src/content/book/{locale}/| Slug | English Title |
|---|---|
| Preface |
| History |
| Introduction |
| Understanding AI Models |
| Anatomy of an Effective Prompt |
| Core Prompting Principles |
| Role-Based Prompting |
| Structured Output |
| Chain of Thought |
| Few-Shot Learning |
| Iterative Refinement |
| JSON & YAML Prompting |
| System Prompts & Personas |
| Prompt Chaining |
| Handling Edge Cases |
| Multimodal Prompting |
| Context Engineering |
| Common Pitfalls |
| Ethics & Responsible Use |
| Prompt Optimization |
| Writing & Content |
| Programming & Development |
| Education & Learning |
| Business & Productivity |
| Creative Arts |
| Research & Analysis |
| The Future of Prompting |
| Agents & Skills |
<div><img>className##**bold***italic*[links](url)importmessages/{locale}.json"book""book": {
"title": "The Interactive Book of Prompting",
"subtitle": "An Interactive Guide to Crafting Clear and Effective Prompts",
"metaTitle": "...",
"metaDescription": "...",
...
}book.chapters"chapters": {
"00a-preface": "Preface",
"00b-history": "History",
"00c-introduction": "Introduction",
...
}book.chapterDescriptions"chapterDescriptions": {
"00a-preface": "A personal note from the author",
"00b-history": "The story of Awesome ChatGPT Prompts",
...
}book.parts"parts": {
"introduction": "Introduction",
"foundations": "Foundations",
"techniques": "Techniques",
"advanced": "Advanced Strategies",
"bestPractices": "Best Practices",
"useCases": "Use Cases",
"conclusion": "Conclusion"
}book.interactive.demoExamples"demoExamples": {
"tokenPrediction": {
"tokens": ["The", " capital", " of", " France", " is", " Paris", "."],
"fullText": "The capital of France is Paris."
},
"temperature": {
"prompt": "What is the capital of France?",
...
}
}src/components/book/elements/locales/{locale}.tssrc/components/book/elements/locales/index.tsimport {locale} from "./{locale}";
const locales: Record<string, LocaleData> = {
en,
tr,
az,
{locale}, // Add your new locale here
};
export { en, tr, az, {locale} }; // Add to exportsbook.interactive.*book.chapter.*book.search.*node scripts/check-translations.jsnpm run dev/bookensrc/content/book/*.mdxsrc/content/book/{locale}/*.mdxmessages/en.jsonbooksrc/content/book/*.mdxsrc/content/book/{locale}/*.mdx"book"messages/en.jsonmessages/{locale}.json