Skip to content
Snippets Groups Projects
Commit 01a6c151 authored by Joe Bordes's avatar Joe Bordes
Browse files

i18n(xRay) convert variable to translatable string in Insight

parent 2fd98378
No related branches found
No related tags found
No related merge requests found
...@@ -175,10 +175,14 @@ export class VariationTrendInsight extends Component { ...@@ -175,10 +175,14 @@ export class VariationTrendInsight extends Component {
render() { render() {
const { mode } = this.props; const { mode } = this.props;
const MODE_ADVERB_STRINGS = {
big: t`bigly`,
huge: t`hugely`,
};
return ( return (
<InsightText> <InsightText>
{t`It looks like this data has grown ${mode}ly`}{" "} {t`It looks like this data has grown ${MODE_ADVERB_STRINGS[mode]}`}{" "}
<TermWithDefinition <TermWithDefinition
definition={variationTrendDefinition} definition={variationTrendDefinition}
link={varianceLink} link={varianceLink}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment