📜 ⬆️ ⬇️

Mutulz is now a little dearer


Yohoho guys! Finally, what everyone has been waiting for has happened! MooTools became closer to all people who do not know English well! The authors localized it into many languages ​​and you can use any of them that is closer to you.

I am sure this is a great step into the future. The threshold for entering JavaScript programming has been significantly reduced.

Now you can write in Italian:
')
Element.impostaStile('colore', 'rosso'); 


Use British English instead of American (and you were confused about how to write - 'color' or 'color'? I think this will completely remove confusion)

 Element.setStyle('colour', 'red'); 


And, most importantly, I can now program in my mobile!

 Element.('і', '') 


Below are some advanced examples, and from the link you will find that they work just fine and this is really what we have been waiting for. Just hit play:


Dutch :
 Locale.use('nl-NL'); venster.gebeurtenisToevoegen('domklaar', function(){ var element = nieuwElement('div'); element.injecteer(document.body); element .zetStijl('kleur', '#ff0') .zet('tekst', 'Hallo, hoe gaat het?'); [1, 2, 3].elke(function(waarde, index){ console.log(waarde, index); }); Array.van($$('p')).elke(function(element){ element .zetStijl('achtergrond', '#ddd') .zetStijlen({ hoogte: Nummer.willekeurig(30, 50), breedte: '50%' }); }); }); 


Ukrainian :
 Locale.use('uk-UA'); і.і('', function(){ $$('#і') .('', '#00f') .('і', '#E8F000') .('', 'і'); var  = new ('div'); .(.і);  .('', '#E8F000') .('і', '#00f') .('', ' ї'); [1, 2, 3].(function(, і){ new ('p').('',  + ' ' + і).(.і); }); //$('bla').(); .('і'); }); 


German :
 Locale.use('de-DE-GROß'); FENSTER.FÜGEEREIGNISHINZU('domverfügbar', function(){ var element = NEUESELEMENT('div'); element.EINFÜGENIN(document.body); element .SETZESTIL('farbe', '#ff0') .SETZE('text', 'Hallo Welt!'); [1, 2, 3].ALLE(function(wert, index){ console.log(wert, index); }); }); 

Source: https://habr.com/ru/post/116653/


All Articles