Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

290
Views
Laravel - Use translations in Javascript / React Component

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

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!