.php ← supported

Translate PHP Lang Files.
Keys Always Intact.

Upload your Laravel or WordPress PHP language file. Every string value is translated and written back exactly where it was — same keys, same nesting, same :placeholders. Drop it straight back into your project.

🔑 Keys never touched 🐘 Laravel & WordPress 🌍 100+ languages

From $4.99 · 5,000 words · No subscription

🔑
Keys
never touched
🐘
Laravel & WP
ready to import
lang/en/messages.php Ready
<?php
return [
'welcome' => 'Welcome back!',
'save' =>    'Save changes',
'login' =>   'Sign in',
'404' =>    'Page not found',
];
Ready to translate 0%
🐘 fr.php Download ↓
🔑
keys preserved
100+
target languages
nesting levels
4
AI engines
3 Steps

Upload once. Every locale ready.

No key editing. No structure changes. No broken imports.

01

Upload Your .php File

Drop in any PHP language file using the return [...] format. We parse the full structure — nested arrays, all string values — while leaving every key, number, boolean, :placeholder, and null exactly as-is.

.php
02

Pick Your Target Languages

Choose your target locales. All string values translated in parallel. Same price per word regardless of how many languages you pick.

🇪🇸 ES 🇫🇷 FR 🇩🇪 DE 🇯🇵 JA
03

Download — Drop Into Your Project

One .php per language. Same structure, same keys, same nesting. Place it in your lang/ directory and you're done — no code changes.

lang/fr/messages.php lang/de/messages.php
Structure Guaranteed

Only the values change. Everything else stays.

Keys, nesting, arrays, :placeholders, numbers, booleans, and null — all pass through untouched.

Your file
🐘 lang/en/messages.php
<?php return [ 'hero_title' => 'The platform teams love.', 'hero_sub' => 'Ship faster, together.', 'greeting' => 'Hello, :name!', ];
✓ After DocTranslate.AI (FR)
🐘 lang/fr/messages.php
<?php return [ 'hero_title' => 'La plateforme que les équipes adorent.', 'hero_sub' => 'Livrez plus vite, ensemble.', 'greeting' => 'Bonjour, :name !' ← :name safe ];
🔑
Keys
Array keys never modified, exactly as written in the original
{}
Nesting
Nested arrays preserved recursively, any depth
:x
Placeholders
The AI is instructed to leave :name, :count and similar patterns untouched — only surrounding text is translated
🔢
Non-string values
Numbers, booleans, and null pass through exactly as-is
🔤
Key order
Insertion order maintained throughout the output file
📄
PHP header
Valid <?php return [...]; output, UTF-8, ready for require()
Who uses this

Built for everyone shipping PHP to production

🏗️

Laravel Applications

Translate your lang/en/ directory into every locale your app needs. All :placeholder, pluralization, and nested keys preserved.

lang/en/auth.php → fr · de · es
🔌

WordPress Plugins

PHP language arrays used in many WP plugins and themes. Translate your string arrays and import back — no changes to your plugin code.

languages/plugin-en.php → 10 locales
🛒

E-commerce (WooCommerce, Magento)

Product names, checkout strings, error messages — bulk translate PHP locale exports from your storefront.

checkout_strings_en.php · 800 strings
📦

Symfony & Other Frameworks

Any PHP framework using return array() or return [] translation files is supported. Upload, translate, drop back in.

translations/messages.en.php
🌐

SaaS & Multi-tenant Apps

Launching in a new market? Translate your full PHP lang directory in minutes — all tenant-facing strings, every locale.

lang/en/ → 15 locales in one job
📧

Email & Notification Templates

Transactional email strings stored as PHP arrays — translate subject lines, body copy, and CTAs across all languages at once.

emails_en.php · :name, :amount safe
AI Engines

You pick the AI.
We preserve the keys.

Match the engine to your content — marketing copy, app strings, or high-volume technical text.

Claude

Best quality

Ideal for marketing copy, creative content, and UI strings where tone matters.

ChatGPT

Fast & reliable

Great all-rounder for app strings, error messages, and product descriptions.

DeepL

European languages

Industry standard for DE, FR, ES, IT, NL locale files.

Google

Maximum coverage

100+ languages. Best for APAC and rare language pairs.

FAQ

Common questions

🐘

Your PHP lang files.
Every locale.
Zero key changes.

Plans from $4.99. 5,000 words. No subscription required.

One-time purchase · Credits valid 1 year · No subscription

Related formats