DEV Community

David Carr
David Carr

Posted on • Originally published at dcblog.dev on

Laravel Extract Language to lang files

Laravel Extract Language to lang files

If you've already used JSON lang in your views, here's a handy package to extract all lang keys to language files. The package exports all your __(‘some text’) calls to language files.

https://github.com/kkomelin/laravel-translatable-string-exporter

Here's a video demo.

https://www.youtube.com/watch?v=AA2m-FzkuCw

Top comments (0)

Billboard image

The Next Generation Developer Platform

Coherence is the first Platform-as-a-Service you can control. Unlike "black-box" platforms that are opinionated about the infra you can deploy, Coherence is powered by CNC, the open-source IaC framework, which offers limitless customization.

Learn more