Download the PHP package shaunthegeek/laravel-lang-db without Composer
On this page you can find all versions of the php package shaunthegeek/laravel-lang-db. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download shaunthegeek/laravel-lang-db
More information about shaunthegeek/laravel-lang-db
Files in shaunthegeek/laravel-lang-db
Download shaunthegeek/laravel-lang-db
More information about shaunthegeek/laravel-lang-db
Files in shaunthegeek/laravel-lang-db
Vendor shaunthegeek
Package laravel-lang-db
Short Description Manage Laravel translations in the database and export them to JSON files.
License MIT
Package laravel-lang-db
Short Description Manage Laravel translations in the database and export them to JSON files.
License MIT
Please rate this library. Is it a good library?
Informations about the package laravel-lang-db
Laravel Lang DB
Manage Laravel translations in the database and export them to JSON files.
Installation
Usage
-
Run migrations to create the table:
- Import translations from
/langdirectory to database:
This will read all .json files in /lang and populate the database. By default, it skips existing keys. Use --force to update existing records:
- Add translations to the
languagestable, either by directly operating the database or via the admin interface (e.g., FilamentPHP).
| locale | key | value |
|---|---|---|
| en | messages.welcome | Welcome |
| zh_CN | messages.welcome | 欢迎 |
- Export translations to
/langdirectory:
This will create/update:
/lang/en.json/lang/zh_CN.json
Testing
All versions of laravel-lang-db with dependencies
PHP Build Version
Package Version
Requires
laravel/framework Version
>=v10
The package shaunthegeek/laravel-lang-db contains the following files
Loading the files please wait ...