Laravel PHP Translation

Laravel PHP array lang files with colon variable locking

免登入 $19 起 變數安全

問題所在

  • Colon variables :name translate incorrectly
  • PHP array structure breaks
  • Nested arrays flatten or lose keys
  • Manual PHP editing requires IDE

解決方案

  • Laravel-aware parser preserves array structure
  • Colon variables (:name, :count) locked
  • Nested arrays preserved at any depth
  • From $19 flat — no per-word pricing

翻譯前後對比

查看 Laravel PHP 檔案在 AI 翻譯前後的樣貌。變數將保持不變。

原始內容(英文)

字數:30
<?php

return [
    'greeting' => 'Hello :name!',
    'quest' => [
        'title' => 'Kill :count rats',
        'description' => 'Talk to :npc',
    ],
    'items' => [
        'sword' => 'Iron Sword',
        'potion' => 'Health Potion',
    ],
];

翻譯內容(西班牙文)

28 種以上語言
<?php

return [
    'greeting' => '¡Hola :name!',
    'quest' => [
        'title' => 'Mata :count ratas',
        'description' => 'Habla con :npc',
    ],
    'items' => [
        'sword' => 'Espada de hierro',
        'potion' => 'Poción de salud',
    ],
];

注意:所有變數(例如 {pattern})在翻譯版本中將完全保持不變。

變數保護模式

Laravel PHP 檔案包含特殊模式,絕對不可翻譯。我們的 AI 會自動鎖定這些模式。

Locked
:name

Laravel colon

Locked
:count

Laravel colon

Locked
:npc

Laravel colon

Locked
{name}

Curly braces

準備好將您的 Laravel 遊戲本地化了嗎?

上傳您的 Laravel PHP 檔案,24 小時內取得變數安全的 AI 翻譯。免登入。每份檔案 $19 起。

24 小時 · 變數安全 · 28 種以上語言