@asor-studio/asor-core 1.1.8 → 1.1.10

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 CHANGED
@@ -1917,7 +1917,7 @@ declare class TranslateUtility {
1917
1917
  * console.log(translation); // Uses default language from ConfigConst
1918
1918
  * });
1919
1919
  */
1920
- getTranslation$(key: string, modulePaths: string[], lang?: string): Observable<string>;
1920
+ getTranslation$(key: string, modulePaths?: string[], lang?: string): Observable<string>;
1921
1921
  /**
1922
1922
  * Loads translation files from the server for a specific module and language.
1923
1923
  * Implements caching and prevents duplicate requests for the same module/language combination.
@@ -2834,12 +2834,15 @@ declare class TranslatePipe implements PipeTransform, OnDestroy {
2834
2834
  private translateUtility;
2835
2835
  private changeDetectorRef;
2836
2836
  private lastKey;
2837
+ private lastLang;
2838
+ private lastModulePathsSignature;
2837
2839
  private translatedValue;
2838
2840
  private subscription;
2839
2841
  private context;
2840
2842
  constructor();
2841
- transform(key: string, lang?: string): string;
2843
+ transform(key: string, modulePathsOrLang?: string[] | string, lang?: string): string;
2842
2844
  private decodeHtmlEntities;
2845
+ private resolveModulePaths;
2843
2846
  ngOnDestroy(): void;
2844
2847
  static ɵfac: i0.ɵɵFactoryDeclaration<TranslatePipe, never>;
2845
2848
  static ɵpipe: i0.ɵɵPipeDeclaration<TranslatePipe, "translate", true>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@asor-studio/asor-core",
3
- "version": "1.1.8",
3
+ "version": "1.1.10",
4
4
  "keywords": [
5
5
  "angular",
6
6
  "library",
@@ -24,6 +24,7 @@
24
24
  "tslib": "^2.3.0"
25
25
  },
26
26
  "sideEffects": false,
27
+ "author": "robrosc",
27
28
  "license": "SEE LICENSE IN LICENSE",
28
29
  "publishConfig": {
29
30
  "access": "public",