Using OpenAI, DeepL... just one click translates all your strings.
Check the grammar and syntax of all your strings using OpenAI.
Never forget to translate your strings into other locales.
Clean up your translation files and remove all the unused keys.
Keep your files organized by formatting and sorting all your keys.
Store your translation strings in PHP or JSON.
Laratranslate is a Laravel package providing a powerful UI to manage all your translation strings.
It's intended to be installed on your machine and works locally. It is not a SaaS.
No! This package works locally. However, some features like 'AI translation' and 'AI proofread' require you to upload your translation strings to third parties like OpenAI or DeepL.
However, your codebase is never uploaded to us or any third party.
Laratranslate will directly modify your translation files like /lang/en/messages.php
or /lang/fr.json
for example. Both PHP
and JSON
files are supported.
Advanced features like dead translations detection will scan your entire codebase to find unused translation strings.
This package ships with OpenAI and DeepL by default.
But you can use any translation or proofreading service you want. From the config file, you will be able to define your own class. All you need is a class implementing the right interface.
Read more about customization in our documentation.
Laratranslate supports subdirectories commonly used by packages.
From the dashboard, you will be able to select which directory to edit, such as /spark.
However, currently, the dead code detector will not be able to find those translation keys.
Searching, editing, and finding untranslated keys will always work regardless of the frontend, as these operations rely solely on your translation files.
However, at the moment, the package can only scan .php and .blade.php files. Therefore, it won't be able to scan your frontend, making the detection of dead and missing translation keys impossible.