AnsweredAssumed Answered

Multilingual metadata using JavaScript

Question asked by santigt on Jul 12, 2007
Latest reply on Jul 13, 2007 by santigt
Hi all!

I want to use Alfresco JavaScript to create webscripts. The problem is that I don't know how can I fill multilingual properties.

When I import contents, I put this:

<cm:biography>{en=this is the biography,es=esta es la biografia}<cm:biography> 

Obviously, If I put this in JavaScript, the property has this value:

biography: {en=this is the biography,es=esta es la biografia}

In Java I know that the I18N class can change the Locale variable into any language, and with this I can write different values. But in JavaScript I don't know how can I change language or how can I put different values in a multilingual property.

Please help me if you can!