Skip to content

Commit 101b3ed

Browse files
authored
chore: fix typo in example (formatjs#1590)
I have come across this typo while reading the examples. createIntl create a new Intl object and giving it the locale-value of "de", but the messages are actually written in english.
1 parent 01fda98 commit 101b3ed

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/Advanced.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ const messageAst = Object.keys(messages).reduce(
2929
{}
3030
);
3131

32-
const intl = createIntl({locale: 'de', messages: messageAst});
32+
const intl = createIntl({locale: 'en', messages: messageAst});
3333

3434
const App: React.FC<Props> = () => {
3535
return (

0 commit comments

Comments
 (0)