This forum has moved, please join us on github discussions. We will keep these old posts available for reference. Thank you!

How to setup I18N in Apostrophe 2?

Hello,
We are using apostrophe cms 2 and node version 4.4.4.
We want to implement localization/internationalization in our website, for that we are using apostrophe-i18n npm module which is default module in apostrophe 2.
But we do not know how to use apostrophe-i18n in apostrophe 2.
We went through lots of sites any many blogs but we did not find any good example or steps to integrate it.
Can somebody help us ?
Thank you.

Hi Ronak,

Currently Apostrophe 2.x has some internationalization support for its admin interface via the apostrophe-i18n module, which ensures the __ helper is there, and we make a point of passing any hardcoded text in our templates through this, although we’re not terribly consistent about it yet and of course PRs are welcome on that.

However, there is as yet no content localization module in 2.x for creating, for instance, a site which has an English and a Spanish version of each page that know about each other.

Although we’ve taken all the steps to ensure Apostrophe’s model layer has the flexibility to easily accommodate something like this, it’s not a project we’re likely to pursue in-house soon, unless we have either an in-house client with a need for it, or an Apostrophe Enterprise Support customer who wishes to fund development in this area.

In Apostrophe 0.5, the apostrophe-localization module provides the kind of functionality you may be looking for. Porting that to 2.x is something you might pursue as your open source contribution to Apostrophe. Or you might decide to reach out to us about having us do the work as an Enterprise Support customer.