Last active
September 12, 2018 14:15
-
-
Save csorlandi/10f2078d1bdc36370a5947ef31e30eb1 to your computer and use it in GitHub Desktop.
This file contains 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
import RNLanguages from "react-native-languages"; | |
import i18n from "i18n-js"; | |
import en from "../config/translations/en.json"; | |
import pt from "../config/translations/pt.json"; | |
i18n.locale = RNLanguages.language; | |
i18n.fallbacks = true; | |
i18n.translations = { en, pt }; | |
export default i18n; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment