diff --git a/src/TransWithoutContext.js b/src/TransWithoutContext.js index 672e0cf25..8d25e20eb 100644 --- a/src/TransWithoutContext.js +++ b/src/TransWithoutContext.js @@ -362,8 +362,8 @@ export function Trans({ if (components) { Object.keys(components).forEach((c) => { - if (!components[c].key) components[c] = cloneElement(components[c], { key: c }); - const comp = components[c]; + const componentKey = components[c].key || c; + const comp = cloneElement(components[c], { key: componentKey }); if ( typeof comp.type === 'function' || !comp.props ||