Skip to content

Commit

Permalink
rebuild
Browse files Browse the repository at this point in the history
  • Loading branch information
jamuhl committed Dec 31, 2018
1 parent 7ece8b4 commit 1d22b3e
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 5 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
@@ -1,3 +1,7 @@
### 13.1.0

- Support interpolation for defaultValue as parameter [1151](https://github.com/i18next/i18next/pull/1151)

### 13.0.1

- update typedefinitions [1152](https://github.com/i18next/i18next/pull/1152)
Expand Down
11 changes: 9 additions & 2 deletions i18next.js
Expand Up @@ -1634,8 +1634,15 @@ function get$1() {
appendNamespaceToCIMode: false,
overloadTranslationOptionHandler: function handle(args) {
var ret = {};
if (args[1]) ret.defaultValue = args[1];
if (args[2]) ret.tDescription = args[2];
if (_typeof(args[1]) === 'object') ret = args[1];
if (typeof args[1] === 'string') ret.defaultValue = args[1];
if (typeof args[2] === 'string') ret.tDescription = args[2];
if (_typeof(args[2]) === 'object' || _typeof(args[3]) === 'object') {
var options = args[3] || args[2];
Object.keys(options).forEach(function (key) {
ret[key] = options[key];
});
}
return ret;
},
interpolation: {
Expand Down
4 changes: 2 additions & 2 deletions i18next.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
@@ -1,6 +1,6 @@
{
"name": "i18next",
"version": "13.0.1",
"version": "13.1.0",
"description": "i18next internationalization framework",
"main": "./index.js",
"types": "index.d.ts",
Expand Down

0 comments on commit 1d22b3e

Please sign in to comment.