Skip to content

Commit

Permalink
Merge pull request #947 from k4r1/patch-1
Browse files Browse the repository at this point in the history
Use count from `values` object passed to Trans
  • Loading branch information
jamuhl committed Sep 24, 2019
2 parents 19a2a0a + b58e540 commit 37408e6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Trans.js
Original file line number Diff line number Diff line change
Expand Up @@ -234,10 +234,10 @@ export function Trans({
const interpolationOverride = values ? {} : { interpolation: { prefix: '#$?', suffix: '?$#' } };
const combinedTOpts = {
...tOptions,
count,
...values,
...interpolationOverride,
defaultValue,
count,
ns: namespaces,
};
const translation = key ? t(key, combinedTOpts) : defaultValue;
Expand Down

0 comments on commit 37408e6

Please sign in to comment.