Add window.Intl polyfill. Resolves GH-96

This commit is contained in:
Andrew Sliwinski 2015-10-21 20:49:31 -04:00
parent 737a53294d
commit d86703e5db
4 changed files with 722 additions and 6 deletions

View file

@ -35,7 +35,6 @@
"classnames": "2.1.3",
"cookie": "0.2.2",
"css-loader": "0.17.0",
"custom-event-polyfill": "0.2.1",
"eslint": "1.3.1",
"eslint-plugin-react": "3.3.1",
"exenv": "1.2.0",

View file

@ -28,10 +28,10 @@
<link rel="shortcut icon" href="/favicon.ico" />
<link rel="stylesheet" href="/css/lib/normalize.min.css" />
<!-- Shim/Sham ES5 polyfill for older browsers -->
<!-- Polyfill -->
<script src="/js/lib/polyfill.min.js"></script>
<!-- Initialize (Locale & Session) -->
<!-- Initialize (Session & Localization) -->
<script src="/js/init.bundle.js"></script>
</head>

View file

@ -3,9 +3,12 @@ var jar = require('./lib/jar');
var translations = require('../locales/translations.json');
require('custom-event-polyfill');
/**
* -----------------------------------------------------------------------------
* Session
* -----------------------------------------------------------------------------
*/
// Session
(function () {
window._session = {};
@ -46,7 +49,11 @@ require('custom-event-polyfill');
window.refreshSession();
})();
// L10N
/**
* -----------------------------------------------------------------------------
* L10N
* -----------------------------------------------------------------------------
*/
(function () {
/**
* Bind locale code from cookie if available. Uses navigator language API as a fallback.

File diff suppressed because one or more lines are too long