I’m in the first stage of developing a live score website using Laravel, the project use Arabic as first language, also I’m using a football API to get live data, the provided data is in JSON format but the default language of teams, players, etc are in English.
For example I get data in the view like this:
@foreach($details['response'] as $detail)
<div class="match-all">
<div class="match-container">
<div class="match-top">
<div class="match-status">{{$detail['fixture']['status']['long']}}</div>
<div class="match-league"><img src="{{$detail['league']['logo']}}" alt="">{{$detail['league']['name']}}</div>
</div>
.....
I’m asking about the best way to make the translation of data from English to Arabic language?
Technic IT is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
1