Skip to content

Commit

Permalink
Examples: Make basic globalize-compiler example more generic
Browse files Browse the repository at this point in the history
Examples

Move Globalize.locale('en') to development.html

Fixes globalizejs#637
  • Loading branch information
jacalata committed Aug 17, 2017
1 parent 8f8a1d2 commit 5e03bee
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 5e03bee

Please sign in to comment.