
The Gist I’ve discovered a somewhat hacky way for using ICU Messages (Pluralization/Selection) in element attributes. For those that just want to see the technique right away, here it is:
1 2 3 4 5 |
<div hidden> <!-- ICU selection message marked for translation --> <span #altValue i18n>{role, select, tinker {Tinker} tailor {Tailor} soldier {Soldier} spy {Spy}} Profile Image</span> </div> <img [alt]="removeHtmlComments(altValue.innerHTML)" /> |
I will explain it further on in the post….

I’m back again with the second in my series of posts chronicling my adventures as I try different backend languages for writing a simple but real API. Admittedly, I did this quite some time ago and have been slacking when…

I went to RustConf this weekend. The night before the conference there was a Tokio hack night for people to learn about and start hacking on Tokio based applications and middleware. I didn’t end up getting to anything for Tokio…

I recently started giving Angular2 a solid look and decided try it out on a greenfield prototype project for work. Since the project is a proof of concept, I’m not too worried about yet another Router deprecation. My initial impression…

Yesterday, I gave a talk at the Seattle Rust meetup. Here is a link to the slides: https://cmgriffing.github.io/rust-concurrency-talk/ To start off, I might not be very qualified to give a talk about Rust. However, I was going to research concurrency…

I have been toying with several other languages lately like Rust and Go. The thing I love about these languages is a lack of exceptions. Things are easier to reason about and no try/catch. It seems to me, with generators…

Notice: This post is outdated. The router for React Native has changed significantly. I have an almost complete React project that was written a while ago using Reflux before Redux was well known. I decided I needed to port the…

I decided to make Rust the first language in a series of rewrites to a Node.js API. My goal is to learn a decent amount about the language while finding the particular things I like and don’t like about them….

Update: Here are the follow up posts about my experiences trying out various languages. Learning by Porting: Rust Edition I have an API that I wrote in Node.js, Proficionym. I like it and it was really fun to make, but…