Skip to content

Commit

Permalink
Merge a8c3343 into c080183
Browse files Browse the repository at this point in the history
  • Loading branch information
adam-clarey committed Mar 15, 2016
2 parents c080183 + a8c3343 commit 7e171c6
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions i18n.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ module.exports = (function() {
'__mf': '__mf',
'getLocale': 'getLocale',
'setLocale': 'setLocale',
'setCatalog': 'setCatalog',
'getCatalog': 'getCatalog',
'getLocales': 'getLocales',
'addLocale': 'addLocale',
Expand Down Expand Up @@ -456,6 +457,11 @@ module.exports = (function() {
return this.locale || defaultLocale;
};

// Write back to the catalog with updated translations.
i18n.setCatalog = function i18nSetCatalog(locale) {
write(locale);
};

i18n.getCatalog = function i18nGetCatalog(object, locale) {
var targetLocale;

Expand Down

0 comments on commit 7e171c6

Please sign in to comment.