Skip to content

Nuxt-i18n integration #77

Open
Open
@mrleblanc101

Description

@mrleblanc101

Hello,
I think this plugin should work seamlessly with nuxt-i18n, another official Nuxt module.
Currently, for every project, I need to setup a plugin so nuxt-moment and nuxt-i18n work properly togerther.

$moment.locale(app.i18n.locale);
app.i18n.beforeLanguageSwitch = async (oldLocale, newLocale) => {
    $moment.locale(newLocale);
};

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