demo: Fix tizen function namespace in demo
[platform/framework/web/web-ui-fw.git] / demos / tizen-winsets / tips / custom-globalize-culture / custom-globalize-culture.js
1 ( function ( $ ) {
2         var customCultureFiles = {
3                         "en" : "en.js",
4                         "en-US" : "en.js",
5                         "fr" : "fr.js"
6                 },
7                 lang,
8                 content = $( '#page-tips-custom-globalize-culture > :jqmData(role="content")' );
9
10         $.tizen.loadCustomGlobalizeCulture( customCultureFiles );
11
12         lang = Globalize.culture( ).name;
13         content.append( $( '<div></div>' )
14                 .text( "This is a text from custom globalize culture file (key:hello): " + Globalize.localize( 'hello' ) ) );
15         content.append(
16                 $( '<div></div>' )
17                 .text( "Current lang: " + lang  + ", Custom culture file: " + customCultureFiles[lang] ) );
18         content.trigger( "refresh" );
19 } ) ( jQuery );