Skip to content

Allow MustLoadMessageFile to accept an optional langTag #347

@jtruong2

Description

@jtruong2

MustLoadMessageFile() takes a path that follows the file naming convention of xxx.en.json and automatically parses the language tag. This incorrectly retrieves the language tag if the path does not follow the convention. In my case, the locales path is locales/en/translation.json. Passing this path to MustLoadMessageFile() will result in the langTag being translation instead of en. It'd be super helpful if either the function could also parse the aforementioned path or accept an optional langTag arg to override the automatic parsing.

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