🌎 translation missing: en.blog_post.title 🔨

TL;DR Make sure you’re raising an error in test and development environments if there is a translation missing. Below there are a couple of thoughts and examples.

Intro

It’s 2017: we are using microservices, shipping APIs and building Progressive Web Apps. But it can’t ease the pain of a real user when our web app is missing translations:

Runtastic
Strava
Groupon

You can find thousands of examples here.

What can possibly go wrong?

The worst case – you’re sending multi-language emails using your app, so your copy lives in locale files. No matter which translation is missing in this part – it will be sent to every user of your app. 💥

Next actions

If you’re using Rails just go to your env/test.rb and env/development.rb and uncomment:

1
config.action_view.raise_on_missing_translations = true

Merry Christmas! 🎅 🎄 🎁

“no fuss, just things you actually need”

Start learning with SQL Habit today

Master Data Analysis with SQL through the story of how a startup succeeded through data.
TRY 35 LESSONS FOR FREE

Explore other articles

2019

2018

2017

2014

2012