Ember component for API_HOGS Trs project.
ember install trs-translation
##Usage
- account: http://translations.api-hogs.io/login
- project: http://take.ms/iZ5wu
- languages: http://take.ms/hYqGH
- get token: http://take.ms/DQD1z
import Ember from 'ember';
import trsTranslation from 'trs-translation/components/trs-translation';
export default trsTranslation.extend({
layoutName: "components/trs-translation",
session: Ember.inject.service(),
i18n: Ember.inject.service(),
locale: Ember.computed.alias('i18n.locale'),
project: 0, //project id which you created in system
isAuthenticated: Ember.computed.alias('session.isAuthenticated'),
canEdit: Ember.computed.equal('session.currentuser.isAdmin', true),
token: Ember.computed('session.session.content.authenticated.translation_token', function() {
return this.get('session.session.content.authenticated.translation_token');
})
});
git clone
this repositorynpm install
bower install