Add translation for components and credentials

* Add typeahead feature of the Lookup component
This commit is contained in:
gconsidine
2017-06-29 17:33:19 -04:00
parent e8433c6301
commit 727568c80d
28 changed files with 335 additions and 117 deletions

View 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;

View File

@@ -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);