Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow MustLoadMessageFile to accept an optional langTag #347

Open
jtruong2 opened this issue Nov 6, 2024 · 0 comments
Open

Allow MustLoadMessageFile to accept an optional langTag #347

jtruong2 opened this issue Nov 6, 2024 · 0 comments

Comments

@jtruong2
Copy link

jtruong2 commented Nov 6, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant