Sha256: 20efc68a7e1ec5d040ed7a82d252fc9dde661a99e4db5269ade212e968a0b907

Contents?: true

Size: 358 Bytes

Versions: 264

Compression:

Stored size: 358 Bytes

Contents

/**
 * @ngdoc service
 * @name  Bastion.i18n.factory:translate
 *
 * @requires gettextCatalog
 *
 * @description
 *   Provides a wrapper for gettextCatalog.getString().
 */
angular.module('Bastion.i18n').service('translate', ['gettextCatalog', function (gettextCatalog) {
    return function (str) {
        return gettextCatalog.getString(str);
    };
}]);

Version data entries

264 entries across 264 versions & 2 rubygems

Version Path
bastion-0.1.3 app/assets/javascripts/bastion/i18n/translate.service.js
bastion-0.1.2 app/assets/javascripts/bastion/i18n/translate.service.js
bastion-0.1.1 app/assets/javascripts/bastion/i18n/translate.service.js
bastion-0.1.0 app/assets/javascripts/bastion/i18n/translate.service.js