Skip to content

Option to automaticly load namespace when using global $t function #3464

@paulwer

Description

@paulwer

Hello everyone,
we are using global $t function in our vue js project.
Currently, when we are wanting to get data from a namespace, even thou we are using the global function and dont need the useTranslate hook/composeable, we are required to call it in the component setup, to ensure the namespace (other than no ns) is loaded properly.

Would it be possible to check if the ns is loaded when using ns and automaticly load it from staticData, when invoked?

$t('test', { ns: 'test' })

Kind regards & thank you
paulwer

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions