Skip to content

Switch to default locale instead of throwing an error in case of non-existing locale; #2

@felixdenoix

Description

@felixdenoix

Hi,

Thanks for this embla plugin.

When using it I've stumbled upon an error being thrown on module initializing.
If the locale does not exist in the translations files, the plugin throws an error and it's preventing the carousel from initializing.

intl = getIntl(options.locale);

Would you be open to be merging a pr that prevent the module from crashing when the locale does not exist in the resource of the module and uses the default language (en-US) ?

Regards

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions