Skip to content

Commit

Permalink
globalizejs#637-Make basic globalize-compiler example more generic
Browse files Browse the repository at this point in the history
  • Loading branch information
jacalata committed Aug 17, 2017
1 parent 7fe1fc7 commit ff64909
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
3 changes: 0 additions & 3 deletions examples/globalize-compiler/app.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
var like, number;

// Set default locale as "en".
Globalize.locale( "en" );

// Use Globalize to format dates.
document.getElementById( "date" ).textContent = Globalize.formatDate( new Date(), {
datetime: "medium"
Expand Down
1 change: 1 addition & 0 deletions examples/globalize-compiler/development.html
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@ <h2>Demo output</h2>
Globalize.load( weekData[ 0 ] );
Globalize.loadMessages( messages[ 0 ] );
Globalize.loadTimeZone( ianaTzData[ 0 ] );
Globalize.locale("en");

// Load and execute our App.
$.getScript( "app.js" );
Expand Down

0 comments on commit ff64909

Please sign in to comment.