v5.1.0: Translation Manager, Cross-Platform CLI & Lang Packs #6
jayeshmepani
announced in
Announcements
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
⭐ New Features
/translations-manager. Routes and JSON APIs register automatically (data, languages, existing map, scan, save, add-languages). Prefix, enable flag, and middleware are configurable.gemini-translator-config,gemini-translator-views,gemini-translator-assets,gemini-translator-manager. CSS/JS are inlined so the page works without publishing assets.<dialog>/<search>/popover, light/dark theme (gemini-translator-theme), sticky KEY column, pagination footer (default 5 rows; last two pages stay visible with an ellipsis).gemini-translator-malform-detector). Marks cells whose writing system does not match the locale (including leftover Latin in Gujarati, Hindi, and similar). Placeholders (:name,{0},[2,*]) and Common marks (danda।) are ignored. Review-only — it does not rewrite files.lang/app3/andlang/web/are separate trees fromlang/. After you pick a module that has extra packs, the CLI asks which packs to process, then lists JSON/PHP files from those packs only.loadJsonTranslationsFrom()/loadTranslationsFrom()directories and publishedresources/lang/modules/{name}(published copy wins). Composervendor/lang trees are skipped.zh→zh_CN,pt→pt_BR,pa→pa_GURU, and similar).spatie/fork(pcntl). Windows useskernel32menus (FFI) and Symfony Process workers for parallel chunks.--driver=processis available on every OS. Sequentialsyncremains the fallback.--refresh-clean: rebuild existing keys only, ignoring stale file wording. Official Laravel English is the source forauth/pagination/passwords/validation.--model,GEMINI_MODEL/GEMINI_TRANSLATOR_MODEL, then config. Default isgemini-3.5-flash-lite.config/gemini-translator.php(as of 2026-08-13). Edit, add, or zero rows when Google changes RPM/RPD.GEMINI_TRANSLATOR_APPLY_FREE_TIER_CAPScan turn snapshot caps off.🔧 Improvements
PHP_OS_FAMILYbranches inside the command.--driver=forkon Windows runs Process workers (it no longer falls back to sequentialsync).--refreshis the original refresh again: existing keys only, current file wording is the source.messages.welcome,validation.required) when that group is selected.www-data).processed_chunks.🐛 Bug Fixes
file.subkeykeys that belong to a PHP lang group as JSON keys.array_keysof a list).Notice — AI translations
Gemini translations are generally high quality. The package sends source text, per-locale script rules, and a writing-system check so most output matches the language you asked for. Gemini can still mix writing systems, slip in another language, or return wording that is not literal or expected (for example Gujarati mixed with Hindi, Kannada, or English). The check reduces those cases; it does not catch every mistake. Human review is still recommended for production-critical text. Use Highlight script faults in the manager,
--refreshor--refresh-cleanfor leftover faults, and--contextfor domain terms.📋 Requirements
pcntlfor the Unix fork driver;ffifor native Windows menus (optional)This discussion was created from the release v5.1.0: Translation Manager, Cross-Platform CLI & Lang Packs.
All reactions