Laravel translation package
Turns out that we have a lot of Laravel projects which in turn uses translations. To maintain these we use a standard JSON file for each language. Suffice to say that this will create a lot of missing / obsolete / out of date translations over time.
We have created a simple check-tool that parses all source PHP and JS files, tests and blade templates to find translated strings and compares them against the current translation files. This results in a quick overview of your translation status.
We use the tool by copy/pasting the artisan command from one project to another, and updating it in between so it's a mess of checktool versions.
So we will be moving this to an (internal) package that we can include in our projects (even as a dev-dependency) so the tool is available for all projects with the latest version.
About jaytaph
Codemuser extraordinaire
Joined: | March 24, 2023 |
Following: | 2 |
Followers: | 2 |
Posts: | 51 |
Comments: | 3 |
Upvotes: | 4 |
Previous musings
- (1) December 2024
- (1) November 2024
- (1) October 2024
- (1) September 2024
- (1) July 2024
- (2) February 2024
- (3) January 2024
- (3) December 2023
- (4) November 2023
- (5) October 2023
- (10) September 2023
- (8) August 2023
- (1) June 2023
- (1) May 2023
- (4) April 2023
- (5) March 2023