mirror of https://github.com/rancher/ui.git
13 lines
335 B
JavaScript
13 lines
335 B
JavaScript
import { inject as service } from '@ember/service';
|
|
import Mixin from '@ember/object/mixin';
|
|
|
|
export default Mixin.create({
|
|
intl: service(),
|
|
|
|
attributeBindings: ['i18nPlaceholder:placeholder'],
|
|
|
|
i18nPlaceholder: function() {
|
|
return this.get('intl').t(this.get('placeholder'));
|
|
}.property('placeholder', 'intl.locale'),
|
|
});
|