laravel-translations-checker: Does not work with JSON (not in my case atleast)
Location of translation file: lang/en.json Contents: 500+ lines. Small portion of the file:
{
"Account|Accounts": "Account|Accounts",
"Action|Actions": "Action|Actions",
"Activity :activity": "Activity :activity",
"Activity ID": "Activity ID",
"Activity log": "Activity log",
...
}
Error:
The language en.json (E:\Laragon\www\lambda\lang/en.json) is missing the file ( en.json )
Missing the translation with key: en.json.en.Account|Accounts
Missing the translation with key: en.json.en.Action|Actions
Missing the translation with key: en.json.en.Activity :activity
Missing the translation with key: en.json.en.Activity ID
Missing the translation with key: en.json.en.Activity log
Translations for the application works fine though. Just wanted to check if I missed some translations anywhere.
About this issue
- Original URL
- State: closed
- Created a year ago
- Reactions: 1
- Comments: 17 (6 by maintainers)
Hey guys looking into this now!
@mariusberget92 i have pushed new code that should fix your issue. @bgurney can you create a new issue as your situation is a little different.
Thanks guys!
Thanks guys, this will help a ton! working on it now 😄
This is a screenshot of the errors I get when running
translations:checkOur lang directory (in the root of the project) looks like this. There are multiple .php files inside each folder and we use a non-standard en-gb locale name too.
da/ de/ en-gb/ es/ export/ fr/ import/ it/ ni/ no/ pl/ da.ison de.ison en-gb.json es.ison fr.ison it.ison nl.ison no.json pl.json README.md
I am using single .json file, not directory languages. Example: lang/en.json Not: lang/en/xxx.json