Setup SolidJS internationalization with Intlayer
intlayer-solid-jsskillsetup L2★761
aymericzip/intlayer ↗What it does
Integrate i18n component declarations with SolidJS
Best for
Per-component translation declarations in Solid without a centralized flat i18n file.
Inputs
- · [object Object]
- · [object Object]
Outputs
- · [object Object]
Requires
- · @intlayer/mcp
- · solid-intlayer
Preconditions
- · Intlayer configured in Solid/Vite project
- · Content file key matches useIntlayer() argument
Failure modes
- · Calling content directly instead of content() causes reactivity loss
- · Missing key in dictionary file returns undefined
- · Vite not configured to process .content.ts files
Trust signals
- · Official Intlayer package
- · Apache 2.0 license
- · Documented useIntlayer hook example with JSX pattern