Skip to content

Commit

Permalink
try to get rid of internal interpolationOverride handling for Trans c…
Browse files Browse the repository at this point in the history
…omponent, fixes #1729
  • Loading branch information
adrai committed Mar 6, 2024
1 parent bb29742 commit c9d2967
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 14 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
@@ -1,3 +1,7 @@
### 14.0.7

- try to get rid of internal interpolationOverride handling for Trans component, fixes [1729](https://github.com/i18next/react-i18next/issues/1729)

### 14.0.6

- align context handling of Trans component with t function, fixes [1729](https://github.com/i18next/react-i18next/issues/1729)
Expand Down
8 changes: 0 additions & 8 deletions react-i18next.js
Expand Up @@ -480,18 +480,10 @@
...i18n.options.interpolation.defaultVariables
};
}
const interpolationOverride = values || count !== undefined ? tOptions.interpolation : {
interpolation: {
...tOptions.interpolation,
prefix: '#$?',
suffix: '?$#'
}
};
const combinedTOpts = {
...tOptions,
count,
...values,
...interpolationOverride,
defaultValue,
ns: namespaces
};
Expand Down

0 comments on commit c9d2967

Please sign in to comment.