GENL / matice

Use your Laravel translations in JavaScript.
MIT License
99 stars 15 forks source link

Documentation update @translations #17

Closed RomkaLTU closed 3 years ago

RomkaLTU commented 3 years ago

When including @translations you must add locale as custom blade directive param.

@translations(app()->getLocale())

This however unnecessary, I think it should be inside the custom blade directive callback function.

GENL commented 3 years ago

The parameter is not mandatory. This is optional when you need to load only translations for a specific locale.