This post is a quick note on localization. Recently I needed to add some localization features to a front-end project running Vue 2.0. Why not just use an i18n package? That would probably have been a good thing to do, but those I found either had confusing documentation, a high number of old unresolved issues on GitHub, or warnings from npm audit. And my needs were very simple: translate a few text blocks.

Localization, i18n
Localization is not always easy, but how hard is it to get it done without extra dependencies?

Starting Simple

Let’s start with a simple Vue app in a single HTML file using a CDN to load Vue.

This post is a quick note on localization. Recently I needed to add some localization features to a front-end project running Vue 2.0. Why not just use an i18n package? That would probably have been a good thing to do, but those I found either had confusing documentation, a high number of old unresolved issues on GitHub, or warnings from npm audit. And my needs were very simple: translate a few text blocks.

Localization is not always easy, but how hard is it to get it done without extra dependencies?
Starting Simple
Let’s start with a simple Vue app in a single HTML file using a CDN to load Vue. […]