Skip to content

language mixup on traffic #5

@aymanc

Description

@aymanc

moment.locale(opts.lang || opts.language);
being called before calling the moment() function is problematic.

This will force you to use one language throughout your templates, i fixed it in a branch i'm currently using by sending the language as the 3rd parameter in the moment() function instead.

Note: The problems won't appear until you have considerable traffic and using multiple locales, the locales would get mixed up.

Best,
Ayman.

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