All packages included in the main Vulcan repo are ready for internationalization and come with English strings.
To add a new language, you need to:
- Create a new package containing the internationalized strings (you can use
vulcan:i18n-en-usas a model).
- Publish that package to Atmosphere and then add it to your app using
meteor add username:packagename, or else keep it in your repo as a local package.
localeto the locale name (
ru, etc.) in your settings.
Note: make sure the locale you set matches the language package you’re adding.
If you create a new internationalization package, let us know so we can add it here!
By default, Vulcan uses the
vulcan:i18n package for internationalization. It supports an extremely limited set of i18n features by design in order to keep the Vulcan bundle size low, but all
vulcan:i18n APIs are 100% compatible with the react-intl package.
If you do need all of react-intl’s features, here’s how to enable them:
Create a new
Inside, create the following
And the following
export * from 'react-intl';
You’ll now have two packages named
vulcan:i18n, but because your newly created
_vulcan-i18n directory starts with
_, it will take alphabetical precedence over the default
vulcan-i18n and be used by your app instead.
You can keep importing from
vulcan:i18n as usual, except
vulcan:i18n will now simply be a clone of