big intl update, only polishing left, Issue #42

This commit is contained in:
Peter Cottle 2013-02-23 23:31:30 -08:00
parent 7e165c6fdc
commit a0c8c34522
10 changed files with 471 additions and 232 deletions

View file

@ -72,6 +72,11 @@ var getIntlKey = exports.getIntlKey = function(obj, key) {
return obj[key][getLocale()];
};
var getDialog = exports.getDialog = function(obj) {
var defaultLocale = getDefaultLocale();
return getIntlKey(obj, 'dialog') || obj.dialog[defaultLocale];
};
var getHint = exports.getHint = function(level) {
return getIntlKey(level, 'hint') || str('error-untranslated');
};