Last active
May 11, 2020 13:25
-
-
Save iliran11/195ab2d3431a29fc7ed6d05eadd88ff5 to your computer and use it in GitHub Desktop.
i18NextManager gets a requested language, and returns the t function
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
const i18next = require("i18next"); | |
i18next.init({ | |
lng, | |
resources: { | |
en: { | |
translation: { | |
greeting_key: "hello", | |
}, | |
}, | |
es: { | |
translation: { | |
greeting_key: "hola", | |
}, | |
}, | |
}, | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment