You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add a Playgrounds table on the integrations index and tip callouts on
each package page with GitHub links and monorepo `dev` commands so the
existing packages/*/playground apps are easy to find and run.
Co-authored-by: Pavel Kuzmin <Virus191288@gmail.com>
Copy file name to clipboardExpand all lines: docs/integrations/index.md
+22-5Lines changed: 22 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -41,6 +41,20 @@ Unlike the full Nuxt module, these packages:
41
41
-**[Types Generator](./types-generator.md)** (`@i18n-micro/types-generator`) - For generating TypeScript types from translation files
42
42
-**[DevTools UI Package](./devtools-ui-package.md)** (`@i18n-micro/devtools-ui`) - Development tools for managing translations
43
43
44
+
## Playgrounds
45
+
46
+
Each integration ships a small app under `packages/<name>/playground` so you can see wiring end-to-end (createI18n / provider, router adapter, components, locale switch) without building a project from scratch. Clone the monorepo, `pnpm install`, then run the package’s `dev` script.
Copy file name to clipboardExpand all lines: docs/integrations/nodejs-package.md
+7Lines changed: 7 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,6 +8,12 @@ outline: 'deep'
8
8
9
9
Use `@i18n-micro/node` to add i18n translations to any Node.js application, CLI tool, or backend service. This package provides the same translation logic as the Nuxt module, but for pure Node.js environments.
10
10
11
+
::: tip Playground
12
+
CLI script that loads a locales folder and exercises `t` / `tc` / routes / reload:
Copy file name to clipboardExpand all lines: docs/integrations/preact-package.md
+7Lines changed: 7 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -24,6 +24,12 @@ The `@i18n-micro/preact` package provides a lightweight, high-performance intern
24
24
25
25
**Note:** The built-in router adapter (`createPreactRouterAdapter` / `createBrowserHistoryAdapter`) uses the native History API and works with any router that listens to `popstate` events (e.g., `wouter-preact`, `preact-router`). For custom routing needs, you can create your own adapter.
26
26
27
+
::: tip Playground
28
+
Pure Preact demo with history adapter, pages, and components:
See the playground implementation in `packages/vue/playground/src/` for a complete working example.
1337
+
See the [Vue playground](https://github.com/s00d/nuxt-i18n-micro/tree/main/packages/vue/playground) for a complete working example (`src/` pages, router adapter, SSR entry).
0 commit comments