formatjs / handlebars-intl

Handlebars helpers for internationalization.
http://formatjs.io/handlebars/
Other
265 stars 28 forks source link

handlebarsIntl is undefined #81

Open tubia opened 7 years ago

tubia commented 7 years ago

Hi all, I'm experiencing an issue with the implementation of handlebars-intl with some browser. The browser are Internet Explorer 9 (IE 11 works) and Safari. The problem is that handlebars-intl is not loaded and the console log both for IE and Safari reports that handlebarsIntl is undefined. As declared in the docs, in order to support older browser intl.js must be loaded and this has been done. This is the way I include the code:

<script src="widget/jquery.js"></script>
<script>
          $.noConflict();
          // Code that uses other library's $ can follow here.   
</script>
<script src="app/semantic.min.js"></script>
<!-- support to Intl for IE and old browsers -->
<script src="https://cdn.polyfill.io/v2/polyfill.min.js"></script>
<script src="app/handlebars.js"></script>
<script src="app/handlebars-intl.min.js"></script>
<script src="app/locale-data/it.js"></script>
<script src="app/locale-data/en.js"></script>
<script src="app/locale-data/fr.js"></script>
<script src="app/locale-data/es.js"></script>
<script src="app/app.js"></script>

Any suggestion would be greatly appreciated.