Main Projects
As a person who is always trying to optimize in every aspect, I love developing tools and applications that fix specific issues I'm facing. And if it's helping me, it might help other people.
I truly believe in OpenSource, and its community, even in this AI Age. I try my best to create performant and minimalist code that you can reuse in your projects.
Here is a selection of my most important open-source projects.
Two-Mi18n
Minimalist Javascript library for internationalization in only two methods. Too minimalist.
Easy installation
Two Mi18n is a client-side oriented library. It is designed to be included via a script tag. It is also available as a npm package.
<script defer src="https://unpkg.com/two-mi18n@latest/dist/TwoMi18n.umd.js"></script> Minimal footprint
I wanted the library to work client side and to be as small as possible. Mainly taking inspiration on AlpineJS .
No headache
The translation object is a simple Javascript object that contains the translations. Its keys are the language keys, and its values are objects that contain the translations with keys and values.
The TwoMi18n object is the main and only object of the library. It contains the two methods of the library, translate() and translateHTML().
The translateHTML(). method is the method that will translate all the elements with the data-twomi18n attribute.
<h1 data-twomi18n="hello"></h1>
<input type="text" data-twomi18n="world hello[placeholder] world[title]"></input>
<script defer>
const translations = {
default: "en",
en: {
hello: "Hello",
world: "World",
},
fr: {
hello: "Bonjour",
world: "Monde",
},
};
const twoMi18n = new TwoMi18n(translations);
twoMi18n.translateHTML("fr");
</script> Cheaty
Cheaty is a simple open-source web extension that allows you to do quick actions on HTML components without going into the inspector console.
The extension allows you to show/hide a password, show/hide an element on the page, and copy the HTML of an element.
You can find all my other projects on Github .