Project checks
pnpm exec meeko check .
pnpm exec meeko build .
The module validates the catalogs when the application is prepared and generates the keys and parameters.
meeko check
checks the calls in your components.
| Name | Type / default | Description |
|---|---|---|
different message keys
|
Preparation
| Check that every language declares the same keys. |
different parameters
|
Preparation
| Review the placeholders and the name/type of the selectors of the same message. |
other is required
|
Preparation
| Add other to each plural or select structure. |
duplicate message key
|
Preparation
| Use different keys across namespaces. |
Missing message
|
Runtime
| Check that the key exists and that the route loads its namespace (routes or global). The application shows the key and warns once in the console. |
Missing i18n value
|
Runtime
| Pass a value for each required parameter. |
must be a finite number
|
Runtime
| Use a finite number in the plural selector. |
Unsupported locale
|
Runtime
| Choose a language included in catalogs. |
Generated types
Unknown keys and missing or wrong arguments produce TypeScript diagnostics. Disabling the module removes its generated template. Keep the source code and the catalogs as the authority.
Test empty messages, quantities 0/1/2 and larger, formats with a fixed time zone and direct navigation to each language. The site's playground covers Spanish, English and Arabic both in SSR and in the browser.