This should be:

```javascript
(function(global, preferGlobal, factory) {
  // AMD. Register as an anonymous module. Also deal with the case
  // that we've been told to force localized on the global (e.g.,
  // in cases where require.js might exist in a page and we want to
  // ignore it and use the global instead).
  if (typeof define === 'function' &&
      define.amd                   &&
      !preferGlobal) {
    define(factory);
  }
  // Expose a global instead
  else {
    global.Localized = factory();
  }
}(this, !!this.__LOCALIZED_ON_GLOBAL, function() {
```