Last active
March 16, 2018 15:09
-
-
Save petervojtek/c30fe6553bb6c1a6d520e326c9537f38 to your computer and use it in GitHub Desktop.
EN/FR react-intl messages
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// https://stackoverflow.com/questions/49104657/is-it-possible-to-override-locale-of-one-specific-intl-formatmessage/49275604?noredirect=1#comment85596893_49275604 | |
import { defineMessages } from 'react-intl'; | |
const messages = defineMessages({ | |
hello: { | |
id: 'app.hello', | |
defaultMessage: 'Hello in english', | |
} | |
} | |
fr.messages.json: | |
{ | |
"app.hello": "Hello in french" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment