Sneaky Abstractions

Subscribe to my Feed, follow me on , recommend me on Working With Rails or see my code on GitHub

Comment

You're viewing a comment to the post Introducing Babilu: Rails i18n for your JavaScript

By Cristobal Viedma at

Great work!

Just a simple suggestion. Maybe when a key is not found in a given language, it could use the translation in the default language.

Now it just show a “null”, but I think that other approach is even better. Only in case is not defined in the chosen locale neither in the default one, it would show the ugly null.

Tear down the house and build a boat!
Abandon wealth and seek living beings!
Spurn possessions and keep alive living beings!