When using @translations, I want to get the translations of the current user language and the fallback language, but not of all languages.
Current behavior
@translations provides all languages which can be very large. @translations("de") only provides German but not the specified fallback language which can result in errors.
Versions
Laravel: 9.54.2
Matice: 1.1.7
Contents of Matice.translations
With @translations:
With @translations("de"):
Is there an easy way to fix this? Pushing all language data over the wire seems wasteful. Thank you for any help.
Just in case you didn't notice @jeyemwey, this issue has been fixed as part of the latest release v1.1.8. Thanks for the patience, I'm now maintaining this package again.
Expected behavior
When using
@translations
, I want to get the translations of the current user language and the fallback language, but not of all languages.Current behavior
@translations
provides all languages which can be very large.@translations("de")
only provides German but not the specified fallback language which can result in errors.Versions
Contents of
Matice.translations
With
@translations
:With
@translations("de")
:Is there an easy way to fix this? Pushing all language data over the wire seems wasteful. Thank you for any help.