Clean Markup with Chrome Extension I18n

Having written both an IE extension and a Chrome extension, I must say that writing the Chrome extension was a far, far better experience. Let’s just say that I really don’t want to ever write an IE extension again.

For the IE extension, you have conflicting forum posts and MSDN articles from years ago that only partially apply to the current version of IE, and there isn’t any real documentation or developer’s guide to speak of. You can write the IE extension in C#, but there is no guidance on how to do so, and the prevailing advice is to write the extension in C++.

Chrome, however, provides a great developer’s guide, tutorials, and a wide collection of sample extensions. The Chrome extension is written completely in Javascript, CSS, and HTML, languages which web developers are already familiar with.

Now that I’ve finished my rant, let’s leave IE behind and focus on Chrome.

Today, we’ll be looking at adding internationalization (i18n) support to a Chrome Extension. We’ll also look at a pattern that uses the data-* attribute in HTML5 to provide clean markup that gets internationalized.

Read More