Skip to content
This repository has been archived by the owner on Jul 1, 2024. It is now read-only.

Commit

Permalink
Build 1.4.0
Browse files Browse the repository at this point in the history
  • Loading branch information
ahumphreys87 committed Feb 26, 2016
1 parent cc9c9ca commit a751a56
Show file tree
Hide file tree
Showing 6 changed files with 20 additions and 12 deletions.
12 changes: 8 additions & 4 deletions dist/orchestra.js
Original file line number Diff line number Diff line change
Expand Up @@ -41149,15 +41149,19 @@ var TranslateHelpers = (function () {
value: function translate(i18nKey, params) {
var locale = this.getLocale();
var result = null;
var options = {
postProcess: 'sprintf',
sprintf: params
};

_i18next2.default.use(_i18nextSprintfPostprocessor2.default).init({
lng: locale,
resources: resources[locale]
}, function (err, translate) {
result = translate(i18nKey, {
postProcess: 'sprintf',
sprintf: params
});
if (params && params.count) {
options.count = params.count;
}
result = translate(i18nKey, options);
});

return result;
Expand Down
2 changes: 1 addition & 1 deletion dist/orchestra.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/orchestra.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/orchestra.min.js.map

Large diffs are not rendered by default.

12 changes: 8 additions & 4 deletions lib/helpers/translate.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion lib/helpers/translate.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit a751a56

Please sign in to comment.