mobify/mobifyjs — pull request #268 by tedtate (2014-04-15 21:20:10+00:00)
Title: Don't lookup non-existent locales in i18n.

Status: **Opened for visibility**

Reviewers: ** @jansepar @rrjamie @noahadams **

## Changes
- Guard against looking up non-existent locales in the i18n function

## How to test-drive this PR
- Build yourself a mobify-client using this commit for mobify 1.1
- Create a project where you initialize an i18n module
- Add a locale to the i18n module which doesn't exist in the json source file
- Try looking up a key, it should return the value of that key under "DEFAULT" instead of erroring