@polyglot-bundles/th-stories
v1.3.2
Published
Thai Little Scoops stories - .ink source files from polyglot-bundles
Maintainers
Readme
Thai Stories Bundle
Package: @polyglot-bundles/th-stories
Thai Little Scoops stories in raw .ink format.
Stories Included (9)
| Slug | Story Name |
|------|-----------|
| a-day-at-the-park | วันหนึ่งที่สวนสาธารณะ |
| a-job-interview | A Job Interview |
| getting-breakfast | Getting Breakfast |
| making-requests | Making Requests |
| marys-hobbies | Mary's Hobbies |
| petes-defense | Pete's Defense |
| supermarket | ซูเปอร์มาร์เก็ต |
| supermarket.test | Supermarket (test) |
| work-life-balance | Work Life Balance |
Usage
import { stories, Story } from "@polyglot-bundles/th-stories";
// All stories as raw .ink source strings
for (const story of stories) {
console.log(`${story.slug}: ${story.content.length} chars`);
}
// Type definition
interface Story {
slug: string; // filename without extension, e.g. "a-day-at-the-park"
content: string; // raw .ink source
}Structure
src/
├── stories/ # .ink source files
│ ├── *.ink
│ └── *.test.ink
├── index.ts # Loads and exports all stories via Vite glob
└── env.d.ts # Vite client typesImport in Vite-based Projects
This package uses Vite's import.meta.glob to load .ink files at build time. The raw content is bundled directly - no runtime file system access needed.
Note
This package exports raw .ink source, not compiled GLOST JSON. Consuming projects are responsible for compiling .ink to GLOST format using inkjs.
