Skip to content

Instantly share code, notes, and snippets.

@strickland84
Created February 19, 2018 13:03
Show Gist options
  • Select an option

  • Save strickland84/f3ab74771c07482291388c64b1599373 to your computer and use it in GitHub Desktop.

Select an option

Save strickland84/f3ab74771c07482291388c64b1599373 to your computer and use it in GitHub Desktop.
filtered.js
This file has been truncated, but you can view the full file.
// Using UMD pattern from
// https://github.com/umdjs/umd#regular-module
// `returnExports.js` version
;(function (root, factory) {
if (typeof define === 'function' && define.amd) {
// AMD. Register as an anonymous module.
define(["i18n"], factory);
} else if (typeof module === 'object' && module.exports) {
// Node. Does not work with strict CommonJS, but
// only CommonJS-like environments that support module.exports,
// like Node.
factory(require("i18n"));
} else {
// Browser globals (root is window)
factory(root.I18n);
}
}(this, function(I18n) {
"use strict";
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment