I currently have a problem with being able to use translations directly in a React component without passing all translations to the component via blade per data attribute. I have found many solutions, but they were all based on Vue.JS.
My translations are in a PHP array, not in a JSON object. Via blade I can get to the individual translations without problems via {{__(...)}}
But how can I get all translations and put them into a javascript variable?
Is there a solution to get translations in a React component without working with data attributes?
Thanks for the help