mirror of
https://github.com/ansible/awx.git
synced 2026-07-30 09:29:54 -02:30
Add translation for components and credentials
* Add typeahead feature of the Lookup component
This commit is contained in:
23
awx/ui/client/lib/services/base-string.service.js
Normal file
23
awx/ui/client/lib/services/base-string.service.js
Normal file
@@ -0,0 +1,23 @@
|
||||
let i18n;
|
||||
|
||||
function BaseStringService (namespace) {
|
||||
let t = i18n._;
|
||||
|
||||
this.t = t;
|
||||
this[namespace] = {};
|
||||
|
||||
this.CANCEL = t('CANCEL');
|
||||
this.SAVE = t('SAVE');
|
||||
this.OK = t('OK');
|
||||
}
|
||||
|
||||
|
||||
function BaseStringServiceLoader (_i18n_) {
|
||||
i18n = _i18n_;
|
||||
|
||||
return BaseStringService;
|
||||
}
|
||||
|
||||
BaseStringServiceLoader.$inject = ['i18n'];
|
||||
|
||||
export default BaseStringServiceLoader;
|
||||
@@ -1,7 +1,9 @@
|
||||
import EventService from './event.service';
|
||||
import PathService from './path.service';
|
||||
import BaseStringService from './base-string.service';
|
||||
|
||||
angular
|
||||
.module('at.lib.services', [])
|
||||
.service('EventService', EventService)
|
||||
.service('PathService', PathService);
|
||||
.service('PathService', PathService)
|
||||
.service('BaseStringService', BaseStringService);
|
||||
|
||||
Reference in New Issue
Block a user