Skip to content

Commit

Permalink
i18n: Test translation flows
Browse files Browse the repository at this point in the history
  • Loading branch information
jornp committed Jul 23, 2024
1 parent 0ad3276 commit 1fb523d
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions client/components/translator-invite/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,21 @@ export class TranslatorInvite extends Component {
return null;
}

getTestStrings() {
const test1 = this.props.translate( 'This text is used to test translations.' );
const test2 = this.props.translate( "We've been testing this for %d days.", {
args: [ 99999 ],
comment: 'The number of days we have been testing.',
} );

return (
<div>
<div>{ test1 }</div>
<div>{ test2 }</div>
</div>
);
}

render() {
const { locale } = this.props;

Expand Down

0 comments on commit 1fb523d

Please sign in to comment.