@polyglot-bundles/fr-stories
v0.6.2
Published
French Little Scoops stories - .ink source files from polyglot-bundles
Downloads
875
Maintainers
Readme
French Stories Bundle
Package: @polyglot-bundles/fr-stories
French Little Scoops stories in raw .ink format.
Stories Included (10)
| Slug | Story Name |
|------|-----------|
| a-job-interview | Un Entretien d'Embauche |
| getting-breakfast | Prendre le Petit Déjeuner |
| le-supermarche | Le Supermarché |
| making-requests | Making Requests |
| marys-hobbies | Les Loisirs de Marie |
| petes-defense | La Défense de Pete |
| supermarket | Supermarket |
| test-story | Test Story |
| une-journee-au-parc | Une Journée au Parc |
| work-life-balance | L'Équilibre Vie Professionnelle |
Usage
import { stories, Story } from "@polyglot-bundles/fr-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-job-interview"
content: string; // raw .ink source
}Structure
src/
├── stories/ # .ink source files
│ └── *.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.
