mirror of
https://github.com/pcottle/learnGitBranching.git
synced 2025-08-17 08:11:04 +02:00
big intl update, only polishing left, Issue #42
This commit is contained in:
parent
7e165c6fdc
commit
a0c8c34522
10 changed files with 471 additions and 232 deletions
|
@ -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');
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue