Correcting little bit more:
{{title (t "user-portal.title.home") " | " (t @config.appName)}} .
Value of the *appName* configuration should be a i18n key too. Currently
common foundation component doesn't use i18n for the *appName*
configuration [1]. @Minoli, shall we fix it?
[1] https://github.com/wso2/carbon-uuf-common/blob/master/co
mponents/org.wso2.carbon.uuf.common.foundation.ui/src/main/component.yaml#L7
On Mon, Jan 23, 2017 at 9:06 PM, Ayesha Dissanayaka <[email protected]> wrote:
> 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]>
>
--
Sajith Janaprasad Ariyarathna
Software Engineer; WSO2, Inc.; http://wso2.com/
<https://wso2.com/signature>
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev