How do we use localisation/translation in Functions in Cloud Platform?
If its app platform, We can make use of the following code:
app.renderMessage()
Do we have something similar on Cloud Platform?
How do we use localisation/translation in Functions in Cloud Platform?
If its app platform, We can make use of the following code:
app.renderMessage()
Do we have something similar on Cloud Platform?
You can use localisation by including
{
"type": "localization",
"value": "HQ0TUYEnwdfdfaUbV16Kwvh5i" // value of localisation code
}
Or you can directly use localisation code in text node
Hey @Subhrajit_Gupta, Thanks for the syntax.
When i tried to use the same on a function and store the value in a string variable, it is not working. I am just getting the object as a response.
Here is my function:
let fruitsObj = {};
fruitsObj.orange_name = { "type": "localization", "value": "UqC0Gtz9p4f1xkcitYd_A" };
resolve(fruitsObj);
I store this object response in the DB and this is what it is showing me on the DB Table:
Current Behaviour:
As you can able to see on the Above Screenshot, I am getting an Object value as output in “fruitsObj.orange_name”.
Expected Behaviour:
I should get the string value (which i have configured on the Localisation) as output in “fruitsObj.orange_name”.