Skip to content

How to integrate with laravel lang files . #17

Answered by andrewdwallo
KhairulAzmi21 asked this question in Q&A
Discussion options

You must be logged in to vote

I try use this in tinker .

$translatedText = Transmatic::translate(text: 'Contacts', to: 'ms'); .

the translation working great, but how to append the translation to ms.json ?

Anytime you use the method in your application, such as for a label in the form, the package automatically appends the translation to your language file. If you want to generate them based on what you have in your default language file, you can take a look at the commands you can run in the documentation.

Replies: 3 comments 11 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
11 replies
@KhairulAzmi21
Comment options

@andrewdwallo
Comment options

Answer selected by KhairulAzmi21
@KhairulAzmi21
Comment options

@andrewdwallo
Comment options

@KhairulAzmi21
Comment options

@andrewdwallo
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants