Wrapped i18n t-function
We need a way to change the output of the t()
function. In this ticket, we implement a wrapped t()
function that allows us to modify the result of the i18next t()
call. The wrapped function works in two modes: (1) is a simple pass-through that just returns the result of the original t
, and (2) returns the "key" plus the translation: { args[0] }:{ t(...args) }
.
Ideally, the mode of operation is controlled with a Redux state variable.