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 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.
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
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 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 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.
This site uses cookies to improve your user experience.
Operational Cookies
We need to use certain cookies to make some web pages function. That is why they do not require your consent.
elegantly_cookiesconsent
1 year 1 month 1 day
elegantly_session
2 hours
XSRF-TOKEN
2 hours
Marketing Cookies
These cookies are used to enhance the relevance of our marketing campaigns. They enable us to offer you more targeted advertisements based on your interaction with our website.
_gcl_au
3 months 6 days
This cookie is used by Google AdSense for experimenting with advertisement efficiency across websites using their services.
IDE
1 year 1 month
Used for ad delivery, personalization, and measurement
ANID
1 year 1 month
Used for advertising
AID
1 year 1 month
Links user activity across devices for ads measurement
TAID
2 weeks
Links user activity across devices for ads measurement
DSID
2 weeks
Identifies signed-in users on non-Google sites so personalization settings are respected
__gads
1 year 1 month
Enables sites to show Google ads
NID
6 months
Stores preferences and personalizes ads in Google services (also used for analytics and functionality)