Hi,
With the help of handlebar subexpressions[1] we can apply i18n for page
titles.
ex: in [2],
{{title "Home | " @config.appName}}
can be written as
{{title (t "Home") " | " @config.appName}}
Now Home becomes the key for i18n.
Hope this is helpful for UUF app developers.
[1] http://handlebarsjs.com/expressions.html#subexpressions
[2]
https://github.com/wso2/product-is/blob/6.0.x-C5/portal/apps/org.wso2.carbon.iam.user-portal.app/src/main/pages/index.hbs#L3
--
*Ayesha Dissanayaka*
Software Engineer,
WSO2, Inc : http://wso2.com
<http://www.google.com/url?q=http%3A%2F%2Fwso2.com&sa=D&sntz=1&usg=AFQjCNEZvyc0uMD1HhBaEGCBxs6e9fBObg>
20, Palmgrove Avenue, Colombo 3
E-Mail: [email protected] <[email protected]>
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev