3
I have a json file where I am listing the information that interests me with PHP.
I’m using Lottie.js to run this. json as a gif/video, my idea is to change the messages in English to Portuguese, I’m able to list them from json, but I don’t know how to change, follow my code:
<?php
$url = 'js/data3.json';
$jsonStr = file_get_contents($url);
$jsonArr = json_decode($jsonStr, true);
$titulo = array();
foreach ($jsonArr['layers'] as $row) {
$titulo[] = $row['nm'];
}
?>
the result I’m having is:
Keep an eye out for an email
Message sent
Send Message
(is bringing the texts)
How I Change Value Message sent
for Mensagem enviada
for example?
Link to the Json: https://jsoneditoronline.org/? id=e231e4df96f349f281002c689d84ab0f
It would be interesting if we had an example of json
– Vinicius De Jesus
I’ll post it here, ta?
– Ricardo Gonçalves
just edit the question and play the json there
– Vinicius De Jesus
done, played at the end of the post
– Ricardo Gonçalves