eh, actually remove logging

This commit is contained in:
Florian Dold 2017-05-23 14:30:30 +02:00
parent 46776d0c30
commit 08a646a00c
No known key found for this signature in database
GPG Key ID: D2E4F00F29D02A4B

View File

@ -109,9 +109,7 @@ interface TranslateProps {
export class Translate extends React.Component<TranslateProps,void> { export class Translate extends React.Component<TranslateProps,void> {
render(): JSX.Element { render(): JSX.Element {
let s = stringifyChildren(this.props.children); let s = stringifyChildren(this.props.children);
console.log(`string "${s}"`);
let tr = jed.ngettext(s, s, 1).split(/%(\d+)\$s/).filter((e: any, i: number) => i % 2 == 0); let tr = jed.ngettext(s, s, 1).split(/%(\d+)\$s/).filter((e: any, i: number) => i % 2 == 0);
console.log(`tr "${JSON.stringify(tr)}"`);
let childArray = React.Children.toArray(this.props.children!); let childArray = React.Children.toArray(this.props.children!);
for (let i = 0; i < childArray.length - 1; ++i) { for (let i = 0; i < childArray.length - 1; ++i) {
if ((typeof childArray[i]) == "string" && (typeof childArray[i+1]) == "string") { if ((typeof childArray[i]) == "string" && (typeof childArray[i+1]) == "string") {