Commit 8bf94464 authored by Maksym Tishchenko's avatar Maksym Tishchenko
Browse files

Wrapped i18n t-function return tsx from postProcessor

parent 959b11cb
import * as React from 'react';
import i18next, { i18n } from 'i18next';
import axios from 'axios';
// eslint-disable-next-line no-restricted-imports
......@@ -47,7 +48,7 @@ const i18nClient = (modules = []): i18n => {
type: 'postProcessor',
name: 'returnKeys',
process: (value, key, options, translator) => {
return `(${key}) ${value}`
return <span key={ key }>{ value }</span>
}
})
.init({
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment