Sha256: be06ad92057c0c2466f137c2fbdc3c46a1abbd557f5fe22928965a35c8a28a92

Contents?: true

Size: 679 Bytes

Versions: 1

Compression:

Stored size: 679 Bytes

Contents

I"›(function() {
  var Locale;

  this.RailsAdmin || (this.RailsAdmin = {});

  this.RailsAdmin.I18n = Locale = (function() {
    function Locale() {}

    Locale.init = function(locale, translations) {
      this.locale = locale;
      this.translations = translations;
      moment.locale(this.locale);
      if (typeof this.translations === "string") {
        return this.translations = JSON.parse(this.translations);
      }
    };

    Locale.t = function(key) {
      var humanize;
      humanize = key.charAt(0).toUpperCase() + key.replace(/_/g, " ").slice(1);
      return this.translations[key] || humanize;
    };

    return Locale;

  })();

}).call(this);
:ET

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
authz-0.0.1.alpha spec/dummy/tmp/cache/assets/sprockets/v3.0/RB/rBGD783U1__l5qR9PkMUBDIWXynofJJSse3sDC7IvOA.cache