UNPKG

ngx-translate-cache

Version:

ngx-translate extension to facilitate language cache.

1 lines 3.51 kB
{"__symbolic":"module","version":3,"metadata":{"TranslateCacheModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule"},"arguments":[{"imports":[{"__symbolic":"reference","module":"@angular/common","name":"CommonModule"}],"declarations":[],"exports":[]}]}],"members":{},"statics":{"forRoot":{"__symbolic":"function","parameters":["config"],"value":{"ngModule":{"__symbolic":"reference","name":"TranslateCacheModule"},"providers":[{"provide":{"__symbolic":"reference","name":"CACHE_NAME"},"useValue":{"__symbolic":"select","expression":{"__symbolic":"reference","name":"config"},"member":"cacheName"}},{"provide":{"__symbolic":"reference","name":"CACHE_MECHANISM"},"useValue":{"__symbolic":"select","expression":{"__symbolic":"reference","name":"config"},"member":"cacheMechanism"}},{"provide":{"__symbolic":"reference","name":"COOKIE_EXPIRY"},"useValue":{"__symbolic":"select","expression":{"__symbolic":"reference","name":"config"},"member":"cookieExpiry"}},{"__symbolic":"reference","name":"TranslateCacheSettings"},{"__symbolic":"select","expression":{"__symbolic":"reference","name":"config"},"member":"cacheService"}]}}}},"CacheMechanism":{"__symbolic":"interface"},"CACHE_NAME":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken"},"arguments":["CACHE_NAME"]},"CACHE_MECHANISM":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken"},"arguments":["CACHE_MECHANISM"]},"COOKIE_EXPIRY":{"__symbolic":"new","expression":{"__symbolic":"reference","module":"@angular/core","name":"InjectionToken"},"arguments":["COOKIE_EXPIRY"]},"TranslateCacheConfig":{"__symbolic":"interface"},"TranslateCacheSettings":{"__symbolic":"class","members":{"__ctor__":[{"__symbolic":"constructor","parameterDecorators":[[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject"},"arguments":[{"__symbolic":"reference","name":"CACHE_NAME"}]}],[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject"},"arguments":[{"__symbolic":"reference","name":"CACHE_MECHANISM"}]}],[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Inject"},"arguments":[{"__symbolic":"reference","name":"COOKIE_EXPIRY"}]}]],"parameters":[{"__symbolic":"reference","name":"string"},{"__symbolic":"error","message":"Could not resolve type","line":27,"character":64,"context":{"typeName":"CacheMechanism"},"module":"./translate-cache.service"},{"__symbolic":"reference","name":"number"}]}]}},"TranslateCacheService":{"__symbolic":"class","members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@ngx-translate/core","name":"TranslateService"},{"__symbolic":"reference","name":"TranslateCacheSettings"}]}],"init":[{"__symbolic":"method"}],"getCachedLanguage":[{"__symbolic":"method"}],"cacheWithLocalStorage":[{"__symbolic":"method"}],"cacheWithCookies":[{"__symbolic":"method"}]}}},"origins":{"TranslateCacheModule":"./index","CacheMechanism":"./translate-cache.service","CACHE_NAME":"./translate-cache.service","CACHE_MECHANISM":"./translate-cache.service","COOKIE_EXPIRY":"./translate-cache.service","TranslateCacheConfig":"./translate-cache.service","TranslateCacheSettings":"./translate-cache.service","TranslateCacheService":"./translate-cache.service"},"importAs":"ngx-translate-cache"}