How I can add a link in Laravel-Lang string ? #21
-
|
I have to do an translatable text which contains links. How can I do that, do I need to translate link and text separated or there is a way to do this ? |
Beta Was this translation helpful? Give feedback.
Replies: 0 comments 3 replies
-
|
You can create your own repository using our template: https://github.com/Laravel-Lang/translations-template In the source folder, delete all unnecessary files, create your own, for example, Then run the The localization code can be any available from the list: https://github.com/Laravel-Lang/publisher/blob/main/src/Constants/Locales.php After that, change the files in the Next, using our Simple steps: https://github.com/Laravel-Lang/translations-template#steps |
Beta Was this translation helpful? Give feedback.
You can create your own repository using our template: https://github.com/Laravel-Lang/translations-template
In the source folder, delete all unnecessary files, create your own, for example,
links.json.Then run the
vendor/bin/lang create encommand in the console.The localization code can be any available from the list: https://github.com/Laravel-Lang/publisher/blob/main/src/Constants/Locales.php
After that, change the files in the
srcfolder for yourself and publish the package.Next, using our
publisher, your translations will be automatically installed in the application when you call thephp artisan lang:updatecommand.Simple steps: https://github.com/Laravel-Lang/translations-temp…