diff --git a/shared/js/ui/react-elements/i18n/index.tsx b/shared/js/ui/react-elements/i18n/index.tsx index 21bbeddd..ede29f25 100644 --- a/shared/js/ui/react-elements/i18n/index.tsx +++ b/shared/js/ui/react-elements/i18n/index.tsx @@ -5,9 +5,7 @@ import {parseMessageWithArguments} from "tc-shared/ui/frames/chat"; let instances = []; export class Translatable extends React.Component<{ children: string | (string | React.ReactElement)[], - __cacheKey?: string, trIgnore?: boolean, - enforceTextOnly?: boolean }, { translated: string }> { protected renderElementIndex = 0; @@ -29,8 +27,9 @@ export class Translatable extends React.Component<{ render() { return this.state.translated.split("\n").reduce((previousValue, currentValue, currentIndex, array) => { previousValue.push({currentValue}); - if(currentIndex + 1 !== array.length) + if(currentIndex + 1 !== array.length) { previousValue.push(
); + } return previousValue; }, []); } @@ -52,7 +51,7 @@ export class Translatable extends React.Component<{ let renderBrElementIndex = 0; export type VariadicTranslatableChild = React.ReactElement | string | number; -export const VariadicTranslatable = (props: { text: string, __cacheKey?: string, children?: VariadicTranslatableChild[] | VariadicTranslatableChild }) => { +export const VariadicTranslatable = (props: { text: string, children?: VariadicTranslatableChild[] | VariadicTranslatableChild }) => { const args = Array.isArray(props.children) ? props.children : [props.children]; const argsUseCount = [...new Array(args.length)].map(() => 0);