Santhosh Thottingal
Santhosh Thottingal
In most of the usecases, the resource files(message json) is at server and it takes a while to get loaded at client. It is not recommended to block the code...
Now that I wrote this, I am thinking why can't this the jquery.i18n have the above feature? :). I will investigate it as an enhancement. Thanks
I agree on this. I was thinking about this for a while. There is some DOM manipulation related stuff in this library -especially the one that change the elements text...
+cc @Mooeypoo
I am working on this again - to build a generic, modern js library https://github.com/santhoshtr/banana-i18n Please take a look.
ack. I will check the mediawiki escaping system and do a compatible system in jquery.i18n.
No. this is different
It may be better to use banana-i18n (https://github.com/wikimedia/banana-i18n) for new projects. That is webpack based and has many easy ways to use in a project.
@ssuess Thanks for the patch. I merged it. In case it helps, we are mostly focussing on jquery independent library. See https://github.com/wikimedia/banana-i18n also comes with react and vue bindings
It is not possible right now to localize the element attributes. You will need to use $('inputselector').val() or attr() methods to achieve this. If you feel that it is a...