Dynamic Translations
Handle Translations with ease without touching the source code
Goal
In real-life projects, we definitely don't want to put translations to the files in resources/lang
The drawback is: if you want to change any translations immediately, you have to change the code and deploy it. Takes time, right?
And here is it, Dynamic Translations built-in within ShipSaaS Ready, use it in no time!
Manage Translations
Visit: Entities/Translation for more details
Configuration
Base: saas-ready.translation
Usage
Facade Style
DI style
Functional style
Render Translations
If you wish to render the translation file (en.json
, vi.json
,...) and utilize the __()
method of Laravel (for your Blade views or anything), then we have this command:
It will render the json file and store it into your lang
(new) or resources/lang
(old)
Last updated