ngx-translate-multi-http-loader 19.0.3 → 20.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.d.ts +18 -5
- package/package.json +1 -1
- package/lib/multi-http-loader.d.ts +0 -14
- package/public-api.d.ts +0 -1
package/index.d.ts
CHANGED
@@ -1,5 +1,18 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
1
|
+
import { HttpBackend } from '@angular/common/http';
|
2
|
+
import { TranslateLoader } from '@ngx-translate/core';
|
3
|
+
import { Observable } from 'rxjs';
|
4
|
+
|
5
|
+
interface TranslationResource {
|
6
|
+
prefix: string;
|
7
|
+
suffix?: string;
|
8
|
+
optional?: boolean;
|
9
|
+
}
|
10
|
+
declare class MultiTranslateHttpLoader implements TranslateLoader {
|
11
|
+
private _handler;
|
12
|
+
private _resourcesPrefix;
|
13
|
+
constructor(_handler: HttpBackend, _resourcesPrefix: (string | TranslationResource)[]);
|
14
|
+
getTranslation(lang: string): Observable<any>;
|
15
|
+
}
|
16
|
+
|
17
|
+
export { MultiTranslateHttpLoader };
|
18
|
+
export type { TranslationResource };
|
package/package.json
CHANGED
@@ -1,14 +0,0 @@
|
|
1
|
-
import { HttpBackend } from '@angular/common/http';
|
2
|
-
import { TranslateLoader } from '@ngx-translate/core';
|
3
|
-
import { Observable } from 'rxjs';
|
4
|
-
export interface TranslationResource {
|
5
|
-
prefix: string;
|
6
|
-
suffix?: string;
|
7
|
-
optional?: boolean;
|
8
|
-
}
|
9
|
-
export declare class MultiTranslateHttpLoader implements TranslateLoader {
|
10
|
-
private _handler;
|
11
|
-
private _resourcesPrefix;
|
12
|
-
constructor(_handler: HttpBackend, _resourcesPrefix: (string | TranslationResource)[]);
|
13
|
-
getTranslation(lang: string): Observable<any>;
|
14
|
-
}
|
package/public-api.d.ts
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
export * from './lib/multi-http-loader';
|