-
Notifications
You must be signed in to change notification settings - Fork 62
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 empty message if from fallback locale #80
Comments
I am facing the issue same. |
@lsmith77 or @AldericWend can you prepare a PR for that? Otherwise, will tackle this during the weekend. |
I suggest to use Matice: https://github.com/GENL/matice |
Hi again @GENL! I saw 3 comments like this one across two repos. Although, |
Lang.js/src/lang.js
Line 297 in 1d8e091
If we have an empty value for a given key in a fallback locale:
'button.tooltip' => ''
and we request Lang.get('button.tooltip') then _getMessage returns 'button.tooltip'.
if (message[subKey] !== undefined) {
solves the problem.
The text was updated successfully, but these errors were encountered: