Skip to content

Multiple translations in a single file #1353

@rafarovina

Description

@rafarovina

Is your feature related to a specific framework or general for this extension
General

Is your feature request related to a problem? Please describe.
I keep a common namespace and page-specific namespaces in my project and I ofter use both in a page.
I couldn't figure out a way that I can use both in the same file. For example

const tHome = useTranslations('pages.home')
const tCommon = useTranslations('common')

tHome('title')
tCommon('back')

Describe the solution you'd like
I'd be great if we could have more than one match for translations in a file

Additional context

Thank you for the awesome tool!

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions