EugeneMeles / laravel-react-i18n

Allows to connect your `Laravel` Framework translation files with `React`.
MIT License
60 stars 7 forks source link

Using translations outside React component #14

Open Kyzegs opened 1 year ago

Kyzegs commented 1 year ago

The package is ideal when you need re-usable translations between React and Laravel. The only caviat I've found so far is that you cannot use the translations outisde of a component. It'd be great if that were possible.

EugeneMeles commented 1 year ago

Why not ? 🤔 Added to todo.

PerryRylance commented 1 month ago

This would indeed break the rule of hooks.

I've got a project on the go where we name columns outside components, this would be helpful.

For now I guess we are going to memoize our columns :)