Skip to content

Incorrect type of locale when using locally scoped useI18n composable #1304

@DamianGlowala

Description

@DamianGlowala

Reporting a bug?

image

vs

image

Expected behavior

Correct types for locale when using locally scoped useI18n composable

Reproduction

n/a

System Info

------------------------------
- Operating System: `Windows_NT`
- Node Version:     `v16.17.0`
- Nuxt Version:     `3.0.1-rc.0-27848798.0cb9a4c`
- Nitro Version:    `2.0.0-27847631.8186a02`
- Package Manager:  `[email protected]`
- Builder:          `vite`
- User Config:      `modules`, `css`, `app`, `i18n`, `googleFonts`, `fontMetrics`, `headlessui`, `image`, `build`, `typescript`, `runtimeConfig`, `security`, `nitro`
- Runtime Modules:  `@nuxtjs/[email protected]`, `@nuxtjs/[email protected]`, `@nuxtjs/[email protected]`, `[email protected]`, `@vueuse/[email protected]`, `@formkit/[email protected]`, `[email protected]`, `@nuxtjs/[email protected]`, `@nuxt/[email protected]`
- Build Modules:    `-`
------------------------------

Screenshot

No response

Additional context

No response

Validations

Metadata

Metadata

Assignees

No one assigned

    Labels

    Status: PR WelcomeWelcome to Pull Requesttypescript🔨 p3-minor-bugPriority 3: a bug in an edge case that only affects very specific usage

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions