Skip to content

Commit 7a6fb1e

Browse files
authored
move 'Example values' into intl (#19446)
1 parent 318b90f commit 7a6fb1e

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

airbyte-webapp/src/locales/en.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -550,6 +550,7 @@
550550
"connector.connectorsInDevelopment.docLink": "See our <lnk>documentation</lnk> for more details.",
551551
"connector.setupGuide": "Setup Guide",
552552
"connector.setupGuide.notFound": "No Setup Guide found for this connector.",
553+
"connector.exampleValues": "Example {count, plural, one {value} other {values}}",
553554

554555
"credits.credits": "Credits",
555556
"credits.whatAreCredits": "What are credits?",

airbyte-webapp/src/views/Connector/ConnectorForm/components/Property/LabelInfo.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import { JSONSchema7Type } from "json-schema";
22
import React from "react";
3+
import { FormattedMessage } from "react-intl";
34

45
import { TextWithHTML } from "components/ui/TextWithHTML";
56

@@ -35,7 +36,9 @@ const Examples: React.FC<Pick<LabelInfoProps, "examples">> = ({ examples }) => {
3536
return (
3637
<div>
3738
{/* don't use <Text as=h4> here, because we want the default parent styling for this header */}
38-
<h4 className={styles.exampleHeader}>{`Example value${examplesArray.length > 1 ? "s" : ""}`}</h4>
39+
<h4 className={styles.exampleHeader}>
40+
<FormattedMessage id="connector.exampleValues" values={{ count: examplesArray.length }} />
41+
</h4>
3942
<div className={styles.exampleContainer}>
4043
{examplesArray.map((example) => (
4144
<span className={styles.exampleItem}>{example}</span>

0 commit comments

Comments
 (0)