GENL / matice

Use your Laravel translations in JavaScript.
MIT License
100 stars 16 forks source link

Always add Fallback language #39

Closed jeyemwey closed 9 months ago

jeyemwey commented 1 year ago

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:

image

With @translations("de"):

image

Is there an easy way to fix this? Pushing all language data over the wire seems wasteful. Thank you for any help.

GENL commented 9 months ago

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.

jeyemwey commented 9 months ago

Yes, thank you for bringing that on!