Lang.js
Lang.js copied to clipboard
Add messageFallback property
This PR gives ability to notify application's owner about translation that is not exists in translation file.
Any change to get this merged soon?
Hey @spyric! I'm checking your proposal, is that a feature defined on Laravel's translator API ? The aim of this library is to provides API-compatible to laravel localization helper. :)
Hello @rmariuzzo . In fact it's not.
But Laravel gives ability to register custom translator and handle missed translations. Currently there is no way to handle missed translations that occured in JS files, so I offered optional thing that will give ability to track it.
Great! Let me think a little about it and comes to a conclusion. Thank you for replying.
On Jul 24, 2017 14:35, "Egor Talantsev" [email protected] wrote:
Hello @rmariuzzo https://github.com/rmariuzzo . In fact it's not.
But Laravel gives ability to register custom translator and handle missed translations. Currently there is no way to handle missed translations that occured in JS files, so I offered optional thing that will give ability to track it.
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/rmariuzzo/Lang.js/pull/44#issuecomment-317514845, or mute the thread https://github.com/notifications/unsubscribe-auth/AAa2HydO7ru7SfKtsaZM7ymj5S7EdaiJks5sROP9gaJpZM4NUWmx .