Hi All, Due to popular demand, we have implemented i18n in Jaggery. what you simple have to do is,
<% var i18n = require("i18n").i18n; i18n.init(request); %> you can put the above part in a header.jag file <% print(i18n.localize("greetings.local", "Greetings from Jaggery")); %> you need to place the resources file in json format also in the app directory. { "greetings.local": "Français - Démo de l10n.js", "info.local": "Vous lisez une localisation en français de cette page." } You can provide the path to the resources script by setting i18n.localeResourcesBasePath Regards, /Nuwan On Thu, Jun 21, 2012 at 9:36 PM, Nuwan Bandara <nu...@wso2.com> wrote: > commonjs also has proposal for this [2] > > [2] > http://wiki.commonjs.org.mirrors.page.ca/articles/i/1/8/I18n_Proposal_A_d0e4.html > > > On Thu, Jun 21, 2012 at 9:09 PM, Nuwan Bandara <nu...@wso2.com> wrote: > >> I will look into this for a possible way of doing it. maybe some SSJS >> impl for [1]. will update this thread >> >> [1] http://eligrey.com/blog/post/passive-localization-in-javascript >> >> On Sat, Jun 2, 2012 at 11:34 PM, Senaka Fernando <sen...@wso2.com> wrote: >> >>> Hi all, >>> >>> How is $subject achieved? How have we made use of this in AM? >>> >>> Thanks, >>> Senaka. >>> >>> -- >>> *Senaka Fernando* >>> Member - Integration Technologies Management Committee; >>> Technical Lead; WSO2 Inc.; http://wso2.com* >>> Member; Apache Software Foundation; http://apache.org >>> >>> E-mail: senaka AT wso2.com >>> **P: +1 408 754 7388; ext: 51736*; *M: +94 77 322 1818 >>> Linked-In: http://linkedin.com/in/senakafernando >>> >>> *Lean . Enterprise . Middleware >>> >>> >>> _______________________________________________ >>> Dev mailing list >>> Dev@wso2.org >>> http://wso2.org/cgi-bin/mailman/listinfo/dev >>> >>> >> >> >> -- >> *Thanks & Regards, >> >> Nuwan Bandara >> Associate Technical Lead & Member, MC, Development Technologies >> WSO2 Inc. - lean . enterprise . middleware | http://wso2.com >> blog : http://nuwanbando.com; email: nu...@wso2.com; phone: +94 11 763 >> 9629 >> * >> <http://www.nuwanbando.com/> >> > > > > -- > *Thanks & Regards, > > Nuwan Bandara > Associate Technical Lead & Member, MC, Development Technologies > WSO2 Inc. - lean . enterprise . middleware | http://wso2.com > blog : http://nuwanbando.com; email: nu...@wso2.com; phone: +94 11 763 > 9629 > * > <http://www.nuwanbando.com/> > -- *Thanks & Regards, Nuwan Bandara Associate Technical Lead & Member, MC, Development Technologies WSO2 Inc. - lean . enterprise . middleware | http://wso2.com blog : http://nuwanbando.com; email: nu...@wso2.com; phone: +94 11 763 9629 * <http://www.nuwanbando.com/>
_______________________________________________ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev