To understand you right: You'd like to display the json file through a blade view file?
Dec 1, 2022
7
Level 1
I can't make the JSON translations work, only the PHP translations work
In my view files i want to use the translation string __("Test Test")
my de.json file:
{
"Test Test": "from de.json"
}
But it is not working in my view files.
However, in the same directory /lang/de I also have test.php file:
<?php
return [
'test_test' => 'from test.php',
];
and it is correctly outputting from test.php.
I am using the standard Breeze installation.
Why is that and how to fix it, so I can use the translations I have in de.json file as well.
Thank you in advance.
Please or to participate in this conversation.