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
i18n/localeDetector.ts
export default defineI18nLocaleDetector((event: any, config: any) => {
return "se";
// If the locale cannot be resolved up to this point, it is resolved with the value `defaultLocale` of the locale config passed to the function
return config.defaultLocale;
});
Error in my IDE:
Cannot find name 'defineI18nLocaleDetector'. Did you mean 'defineI18nLocale'?ts(2552)
imports.d.ts(20, 9): 'defineI18nLocale' is declared here.
Environment
I am following this guide step by step:
https://i18n.nuxtjs.org/docs/guide/server-side-translations
Error in my IDE:
Config is set:
I click details link: https://i18n.nuxtjs.org/docs/api#definei18nlocaledetector
And it is empty.
Reproduction
Here: https://i18n.nuxtjs.org/docs/guide/server-side-translations
Describe the bug
Cannot find name 'defineI18nLocaleDetector'. Did you mean 'defineI18nLocale'?ts(2552)
imports.d.ts(20, 9): 'defineI18nLocale' is declared here.
Additional context
No response
Logs
The text was updated successfully, but these errors were encountered: