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
> Exports in `app/composables/`, `app/utils/`, and `server/utils/` are auto-imported by Nuxt. To prevent [knip](https://knip.dev/) from flagging them as unused, add a `@public` JSDoc annotation:
194
+
>
195
+
> ```typescript
196
+
>/**
197
+
> * @public
198
+
> */
199
+
>exportfunction myAutoImportedFunction() {
200
+
>// ...
201
+
> }
202
+
>```
203
+
192
204
### Vue components
193
205
194
206
- Use Composition API with `<scriptsetuplang="ts">`
@@ -230,7 +242,7 @@ npmx.dev uses [@nuxtjs/i18n](https://i18n.nuxtjs.org/) for internationalization.
230
242
### Approach
231
243
232
244
- All user-facing strings should use translation keys via `$t()` in templates and script
233
-
- Translation files live in `i18n/locales/` (e.g., `en-US.json`)
245
+
- Translation files live in [`i18n/locales/`](i18n/locales) (e.g., `en-US.json`)
234
246
- We use the `no_prefix` strategy (no `/en-US/` or `/fr-FR/` in URLs)
235
247
- Locale preference is stored in cookies and respected on subsequent visits
0 commit comments