import Ember from 'ember';

export default Ember.Mixin.create({
    get : function( key ){
        var translationsRegex = /translate\.(.*)/,
            matches = key.match( translationsRegex );
        if( matches ){
            return this.translate( matches[1] );
        }
        return this._super( key );
    },

    translate: function( key ){
        return this.translateService.getKeyValue( key );
    }
});
import Ember from 'ember';

export default Ember.Mixin.create({
    get: function( key ) {
        var translationsRegex = /translate\.(.*)/,
            matches           = key.match( translationsRegex );

        return ( matches ) ? this.translate( matches[1] ) : this._super( key );
    },

    translate: function( key ) {
        return this.translateService.getKeyValue( key );
    }
});
Refactor to follow style guidelines
Refactor to follow style guidelines
