Replies: 2 comments 2 replies
-
Laravel Lang will not translate keys itself - it uses ready-made ones. You can collect keys for translation in your package and implement the translation yourself.
You can also create your own file with translation keys and include it in your package. Example:
You can also do without the package. You can see the code example here: |
Beta Was this translation helpful? Give feedback.
0 replies
-
what u mean by also for some reason the pkg will publish 3 locales |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
atm am trying to have a way to collect the keys from other files like
vue, js, etc...
, am using the same helper as laravel__()
so we only need to expand the scope of the search.currently i have to use both
laravel-lang/lang
&kkomelin/laravel-translatable-string-exporter
to achive that, however the problem is with laravel-lang translation, it doesnt translate the new keys.also some keys are found in the translation that i cant find anywhere project wide (including vendor) ex.
(and :count more error)
, unfortunately the config file doesnt show much of the configuration the pkg is using.Beta Was this translation helpful? Give feedback.
All reactions