release a en.json #36
Replies: 0 comments 14 replies
-
i dunno if you are interrested in it. but here it is:
|
Beta Was this translation helpful? Give feedback.
-
No, we have abandoned this approach in favor of simplifying support for translationable keys. To easily install translations into your application, use one of the translation managers. For example, this one. |
Beta Was this translation helpful? Give feedback.
-
@caouecs, @andrey-helldar and @Laravel-Lang/laravel-lang. Although I don't know, but maybe it would not be a bad idea to add a new Currently the documentation to add a new language is out of date, I thought to modify it but I couldn't think of how to tell the developer to copy from where the We have the problem that The idea would be to create an So we can tell the developer to copy the whole folder Or what would be the best solution? What do you think? Are we complicating our lives more than necessary? |
Beta Was this translation helpful? Give feedback.
-
Hello,
i was wondering if you could create a en.json that contain a "key" : "value"style just like all other language.
that's because i rewrited some jetstream description (before knowing this package) and noticed that (after installing that package) all the translated content remain english because of the broken hardcoded key (in views).
so, i would prefer restore the original jetstream content views and modify it in a en.json
sadly only the keys are provided in .\vendor\laravel-lang\lang\source\en.json (+ the packages directory)
right now i have to take a random xx.json language and copy all "keys" to a "value" json field.
that's not very convenient to do but that would help a lot for later maintainability and readability.
Edit:
My best option to do it quickly was to copy/past all json content from the source folder into one en.json file.
Then to do a regex find/replace :
From : "(.*?)",
To : "$1": "$1",
Then used :
https://codebeautify.org/remove-duplicate-lines
https://codebeautify.org/sort-text-lines
Beta Was this translation helpful? Give feedback.
All reactions