AngularJS, Node.js

How to Internationalize your website in 10 minutes

Okay so let me come straight to the point that all of us need to provide multi-language support with our websites at some point of time. In such a competitive time, if we can find a short and effective way to do it without getting into much complexity then we are definitely one step ahead of others. So less of talking now and I will...

by Sakshi Tyagi
Tag: i18n
18-Mar-2016

Technology

i18n implementation using Sightly

Internationalization (i18n) is the process of generalizing a product so that it can handle multiple languages and cultural conventions without the need for re-design . a. Structure format required for i18n implementation : 1) Create a i18n node of type sling:Folder as below 2) Create a node of type sling:Folder under i18n of...

by Arpit Gupta
Tag: i18n
09-Nov-2015

Technology

Unit test a method returning an object of protected class

Following is an example of testing a method which returns an object of protect class: In the previous blog we talked about fetching the list of message codes from message.properties file. While writing the test case for CustomisedPluginAwareResourceBundleMessageSource, I was not able to test the message properties that are available...

by Neha Gupta
Tag: i18n
22-Mar-2015

Grails

Grails taglib and JavaScript file

We use internationalization feature in grails using message tag in GSP pages. However arbitrary Groovy/Grails (e.g. tags) code can not be used in JavaScript as they are not executed on server side. To overcome this I used the following way : Declare a JSON object in js file or any where else so that this object is global one. Create a...

by Bhagwat Kumar
Tag: i18n
16-Jan-2011