Skip to content

Instantly share code, notes, and snippets.

@shalkam
Last active March 19, 2018 12:16
Show Gist options
  • Select an option

  • Save shalkam/73dd996b62ee5faddf6e0ac9f3a60b2b to your computer and use it in GitHub Desktop.

Select an option

Save shalkam/73dd996b62ee5faddf6e0ac9f3a60b2b to your computer and use it in GitHub Desktop.
const path = require("path");
const manageTranslations = require("react-intl-translations-manager").default;
manageTranslations({
messagesDirectory: path.join(__dirname, "src/i18n/messages"),
translationsDirectory: path.join(__dirname, "src/i18n/locales/"),
languages: ["en", "ar", "es"] // any language you need
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment