Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
@doodle/i18n / dist / src / views / init.ejs
Size: Mime:
<%# Add EN polyfill %>
<% if (typeof noPolyfill === 'undefined' || !noPolyfill) { %>
  <script<% if (typeof nonce !== 'undefined') { %> nonce="<%= nonce %>"<% } %> src="https://cdn.polyfill.io/v2/polyfill.min.js?features=Intl.~locale.en"></script>
<% } %>

<% if (locale !== 'en') { %>
  <% if (typeof noPolyfill === 'undefined' || !noPolyfill) { %>
  <%# Add polyfill %>
    <script<% if (typeof nonce !== 'undefined') { %> nonce="<%= nonce %>"<% } %> src="https://cdn.polyfill.io/v2/polyfill.min.js?features=Intl.~locale.<%=locale%>"></script>
  <% } %>

  <%# JSONP callback %>
  <script<% if (typeof nonce !== 'undefined') { %> nonce="<%= nonce %>"<% } %>>window.initI18N=function(m){window.i18n = window.i18n||{};window.i18n.locale='<%=locale%>';window.i18n.messages=m;};</script>
  <script<% if (typeof nonce !== 'undefined') { %> nonce="<%= nonce %>"<% } %> type="text/javascript" src="<%=apiPrefix%>/i18n/localeData/<%=locale%>"></script>
  <script<% if (typeof nonce !== 'undefined') { %> nonce="<%= nonce %>"<% } %> type="text/javascript" src="<%=apiPrefix%>/i18n/messages/<%=locale%>?callback=initI18N"></script>
<% } %>