Using OpenAI, Claude... 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 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 is intended to be installed on your machine and works locally. It is not a SaaS.
This package is compatible with Laravel 11 and 12.
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.
However, your codebase is never uploaded to us or any third party.
Laratranslate will directly modify your translation files like \/lang\/en\/messages.php<\/code> or
\/lang\/fr.json<\/code>, for example. Both
PHP<\/code> and
JSON<\/code> files are supported.
Advanced features like dead translation detection will scan your entire codebase to find unused translation strings.
This package ships with the OpenAI SDK by default, so any compatible service, like Anthropic Claude, is supported.
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 that are 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, currently, 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.