@taon-dev/i18n 21.0.44 → 21.0.45

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.
Files changed (113) hide show
  1. package/VERIFIED-BUILD-DATA.jsonc +3 -3
  2. package/browser/fesm2022/i18n-browser.mjs +1 -1
  3. package/browser/fesm2022/i18n-browser.mjs.map +1 -1
  4. package/browser/package.json +1 -1
  5. package/browser/types/i18n-browser.d.ts +1 -1
  6. package/browser-prod/fesm2022/i18n-browser-prod.mjs +1 -1
  7. package/browser-prod/fesm2022/i18n-browser-prod.mjs.map +1 -1
  8. package/browser-prod/package.json +1 -1
  9. package/browser-prod/types/i18n-browser-prod.d.ts +1 -1
  10. package/full-dts/build-info._auto-generated_.d.ts +1 -1
  11. package/lib/build-info._auto-generated_.d.ts +1 -1
  12. package/lib/build-info._auto-generated_.js +1 -1
  13. package/lib/i18n/lib.translation.d.ts +2 -2
  14. package/lib/index._auto-generated_.d.ts +1 -4
  15. package/lib/local-translation.d.ts +2 -2
  16. package/lib/package.json +1 -1
  17. package/lib/translation-manager.d.ts +2 -2
  18. package/lib/translation.d.ts +4 -5
  19. package/lib/translation.models.d.ts +2 -2
  20. package/lib/utils-i18n-extract-gettext-translate-from-html.d.ts +2 -2
  21. package/lib/utils-i18n-extract-gettext-translate-from-html.test.d.ts +0 -1
  22. package/lib/utils-i18n-html.d.ts +2 -2
  23. package/lib/utils-i18n-html.test.d.ts +0 -1
  24. package/lib/utils-po-file-extracto-to-json.test.d.ts +0 -1
  25. package/lib/utils-po-file.d.ts +2 -2
  26. package/lib/utils-po-file.test.d.ts +0 -1
  27. package/lib-esm/lib/build-info._auto-generated_.d.ts +1 -1
  28. package/lib-esm/lib/build-info._auto-generated_.js +1 -1
  29. package/lib-esm/lib/index._auto-generated_.d.ts +1 -4
  30. package/lib-esm/lib/translation.d.ts +4 -5
  31. package/lib-esm/lib/utils-i18n-extract-gettext-translate-from-html.test.d.ts +0 -1
  32. package/lib-esm/lib/utils-i18n-html.test.d.ts +0 -1
  33. package/lib-esm/lib/utils-po-file-extracto-to-json.test.d.ts +0 -1
  34. package/lib-esm/lib/utils-po-file.test.d.ts +0 -1
  35. package/lib-prod/build-info._auto-generated_.d.ts +1 -1
  36. package/lib-prod/build-info._auto-generated_.js +1 -1
  37. package/lib-prod/env/index.d.ts +0 -2
  38. package/lib-prod/env/index.js +0 -2
  39. package/lib-prod/env/index.js.map +1 -1
  40. package/lib-prod/package.json +1 -1
  41. package/package.json +1 -1
  42. package/websql/fesm2022/i18n-websql.mjs +1 -1
  43. package/websql/fesm2022/i18n-websql.mjs.map +1 -1
  44. package/websql/package.json +1 -1
  45. package/websql/types/i18n-websql.d.ts +1 -1
  46. package/websql-prod/fesm2022/i18n-websql-prod.mjs +1 -1
  47. package/websql-prod/fesm2022/i18n-websql-prod.mjs.map +1 -1
  48. package/websql-prod/package.json +1 -1
  49. package/websql-prod/types/i18n-websql-prod.d.ts +1 -1
  50. package/full-dts/env/env.angular-node-app.d.ts +0 -68
  51. package/full-dts/env/env.docs-webapp.d.ts +0 -68
  52. package/full-dts/env/env.electron-app.d.ts +0 -68
  53. package/full-dts/env/env.mobile-app.d.ts +0 -68
  54. package/full-dts/env/env.npm-lib-and-cli-tool.d.ts +0 -68
  55. package/full-dts/env/env.vscode-plugin.d.ts +0 -68
  56. package/full-dts/env/index.d.ts +0 -6
  57. package/lib/env/env.angular-node-app.d.ts +0 -68
  58. package/lib/env/env.angular-node-app.js +0 -145
  59. package/lib/env/env.angular-node-app.js.map +0 -1
  60. package/lib/env/env.docs-webapp.d.ts +0 -68
  61. package/lib/env/env.docs-webapp.js +0 -145
  62. package/lib/env/env.docs-webapp.js.map +0 -1
  63. package/lib/env/env.electron-app.d.ts +0 -68
  64. package/lib/env/env.electron-app.js +0 -145
  65. package/lib/env/env.electron-app.js.map +0 -1
  66. package/lib/env/env.mobile-app.d.ts +0 -68
  67. package/lib/env/env.mobile-app.js +0 -145
  68. package/lib/env/env.mobile-app.js.map +0 -1
  69. package/lib/env/env.npm-lib-and-cli-tool.d.ts +0 -68
  70. package/lib/env/env.npm-lib-and-cli-tool.js +0 -145
  71. package/lib/env/env.npm-lib-and-cli-tool.js.map +0 -1
  72. package/lib/env/env.vscode-plugin.d.ts +0 -68
  73. package/lib/env/env.vscode-plugin.js +0 -145
  74. package/lib/env/env.vscode-plugin.js.map +0 -1
  75. package/lib/env/index.d.ts +0 -6
  76. package/lib/env/index.js +0 -23
  77. package/lib/env/index.js.map +0 -1
  78. package/lib-esm/app/main-page/main-page.active.context.d.ts +0 -0
  79. package/lib-esm/app/main-page/main-page.active.context.js +0 -2
  80. package/lib-esm/app/main-page/main-page.active.context.js.map +0 -1
  81. package/lib-esm/app/main-page/main-page.container.d.ts +0 -0
  82. package/lib-esm/app/main-page/main-page.container.js +0 -2
  83. package/lib-esm/app/main-page/main-page.container.js.map +0 -1
  84. package/lib-esm/app/main-page/main-page.routes.d.ts +0 -0
  85. package/lib-esm/app/main-page/main-page.routes.js +0 -2
  86. package/lib-esm/app/main-page/main-page.routes.js.map +0 -1
  87. package/lib-esm/lib/env/env.angular-node-app.d.ts +0 -68
  88. package/lib-esm/lib/env/env.angular-node-app.js +0 -140
  89. package/lib-esm/lib/env/env.angular-node-app.js.map +0 -1
  90. package/lib-esm/lib/env/env.docs-webapp.d.ts +0 -68
  91. package/lib-esm/lib/env/env.docs-webapp.js +0 -140
  92. package/lib-esm/lib/env/env.docs-webapp.js.map +0 -1
  93. package/lib-esm/lib/env/env.electron-app.d.ts +0 -68
  94. package/lib-esm/lib/env/env.electron-app.js +0 -140
  95. package/lib-esm/lib/env/env.electron-app.js.map +0 -1
  96. package/lib-esm/lib/env/env.mobile-app.d.ts +0 -68
  97. package/lib-esm/lib/env/env.mobile-app.js +0 -140
  98. package/lib-esm/lib/env/env.mobile-app.js.map +0 -1
  99. package/lib-esm/lib/env/env.npm-lib-and-cli-tool.d.ts +0 -68
  100. package/lib-esm/lib/env/env.npm-lib-and-cli-tool.js +0 -140
  101. package/lib-esm/lib/env/env.npm-lib-and-cli-tool.js.map +0 -1
  102. package/lib-esm/lib/env/env.vscode-plugin.d.ts +0 -68
  103. package/lib-esm/lib/env/env.vscode-plugin.js +0 -140
  104. package/lib-esm/lib/env/env.vscode-plugin.js.map +0 -1
  105. package/lib-esm/lib/env/index.d.ts +0 -6
  106. package/lib-esm/lib/env/index.js +0 -7
  107. package/lib-esm/lib/env/index.js.map +0 -1
  108. package/lib-prod/env/env.docs-webapp.d.ts +0 -68
  109. package/lib-prod/env/env.docs-webapp.js +0 -140
  110. package/lib-prod/env/env.docs-webapp.js.map +0 -1
  111. package/lib-prod/env/env.npm-lib-and-cli-tool.d.ts +0 -68
  112. package/lib-prod/env/env.npm-lib-and-cli-tool.js +0 -140
  113. package/lib-prod/env/env.npm-lib-and-cli-tool.js.map +0 -1
@@ -1,6 +1,6 @@
1
- import { ChangeDetectorRef, WritableSignal } from '@angular/core';
1
+ import type { WritableSignal as WritableSignalType } from '@angular/core';
2
2
  import { Observable } from 'rxjs';
3
- import { UtilsI18n } from 'tnp-core/lib';
3
+ import { UtilsI18n } from 'tnp-core';
4
4
  import { TranslationManager } from './translation-manager';
5
5
  import { TaonTranslationsMapImport, TranslationParams } from './translation.models';
6
6
  export declare class Translation {
@@ -11,12 +11,11 @@ export declare class Translation {
11
11
  static manager: TranslationManager;
12
12
  /**
13
13
  * Example how to use it:
14
- * const t = Translation.for(Taon.__FILE_RELATIVE_PATH, Taon.LANG_IMPORT_MAP);
14
+ * const t = Translation.for('src/lib/translation.ts', {"src/lib/translation.ts":{"en-US":async () => (await import('./i18n/translation.ts.en-US.i18n.data')).default,"pl-PL":async () => (await import('./i18n/translation.ts.pl-PL.i18n.data')).default}} as any);
15
15
  */
16
16
  static for(fileRelativePath: string, langImportMap: TaonTranslationsMapImport, opt?: {
17
17
  debug?: boolean;
18
18
  }): Translation;
19
- cdr?: ChangeDetectorRef;
20
19
  private lookup;
21
20
  private readonly loadingSubjectSrc;
22
21
  readonly isLoadingLang$: Observable<boolean>;
@@ -31,7 +30,7 @@ export declare class Translation {
31
30
  gettext: (text: string, params?: TranslationParams, context?: string) => string;
32
31
  private createSignal;
33
32
  readonly signal: {
34
- gettext: (text: string, params?: TranslationParams, context?: string) => WritableSignal<string>;
33
+ gettext: (text: string, params?: TranslationParams, context?: string) => WritableSignalType<string>;
35
34
  };
36
35
  private createObservable;
37
36
  readonly $: {
@@ -1,4 +1,4 @@
1
- import { UtilsI18n } from 'tnp-core/lib';
1
+ import { UtilsI18n } from 'tnp-core';
2
2
  import type { Translation } from './translation';
3
3
  export type TranslationLookup = Record<string, string>;
4
4
  export type TranslationParams = Record<string, unknown> | null;
@@ -22,4 +22,4 @@ export interface TranslationBinding {
22
22
  export interface Translatable {
23
23
  t: Translation;
24
24
  }
25
- export {};
25
+ export {};
@@ -1,4 +1,4 @@
1
- import { UtilsI18n } from 'tnp-core/lib';
1
+ import { UtilsI18n } from 'tnp-core';
2
2
  export declare namespace UtilsI18nExtractGettextTranslateFromHtml {
3
3
  function extractGettextTranslateFromHtml(html: string, fileName?: string): UtilsI18n.GettextExtracted[];
4
- }
4
+ }
@@ -1,4 +1,4 @@
1
- import { UtilsI18n } from 'tnp-core/lib';
1
+ import { UtilsI18n } from 'tnp-core';
2
2
  export declare namespace UtilsI18nHtml {
3
3
  function extractGettextTranslateFromHtml(html: string, fileName?: string): UtilsI18n.GettextExtracted[];
4
4
  function replaceTranslatePipieDirectiveTContext(html: string, options?: {
@@ -6,4 +6,4 @@ export declare namespace UtilsI18nHtml {
6
6
  }): string;
7
7
  function isAngularTsWithInlineHtml(content: string): boolean;
8
8
  function replaceTranslatePipieDirectiveTContextInHtml(html: string): string;
9
- }
9
+ }
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1,8 +1,8 @@
1
- import { UtilsI18n } from 'tnp-core/lib';
1
+ import { UtilsI18n } from 'tnp-core';
2
2
  export declare namespace UtilsPoFile {
3
3
  function generatePoFiles(files: UtilsI18n.GettextFile[], locales: UtilsI18n.CommonLocaleCode[], destinationAbsFolderPath: string): void;
4
4
  function generatePoFileContent(files: UtilsI18n.GettextFile[], locale: UtilsI18n.CommonLocaleCode): string;
5
5
  function extractPoToJson(poFileContent: string): UtilsI18n.GettextFile[];
6
6
  function generateTranslationOverrideInterface(file: UtilsI18n.GettextFile, interfaceName: string, locale: UtilsI18n.CommonLocaleCode): string;
7
7
  function mergeGettextFile(jsonContent1FromTsHtml: UtilsI18n.GettextFile, json2ContentFromPoFileModifedByUser?: UtilsI18n.GettextFile | null): UtilsI18n.GettextFile;
8
- }
8
+ }
@@ -1 +0,0 @@
1
- export {};
@@ -21,4 +21,4 @@ export declare const CURRENT_PACKAGE_TAON_VERSION = "v21";
21
21
  /**
22
22
  * Autogenerated by current cli tool. Use *tnp release* to bump version.
23
23
  */
24
- export declare const CURRENT_PACKAGE_VERSION = "21.0.44";
24
+ export declare const CURRENT_PACKAGE_VERSION = "21.0.45";
@@ -22,6 +22,6 @@ export const CURRENT_PACKAGE_TAON_VERSION = 'v21';
22
22
  /**
23
23
  * Autogenerated by current cli tool. Use *tnp release* to bump version.
24
24
  */
25
- export const CURRENT_PACKAGE_VERSION = '21.0.44';
25
+ export const CURRENT_PACKAGE_VERSION = '21.0.45';
26
26
  // THIS FILE IS GENERATED - DO NOT MODIFY
27
27
  //# sourceMappingURL=build-info._auto-generated_.js.map
@@ -1,13 +1,10 @@
1
1
  export * from './build-info._auto-generated_';
2
2
  export * from './local-translation';
3
3
  export * from './start-cli';
4
- export * from './translate.directive';
5
- export * from './translate.pipe';
6
- export * from './translate.service';
7
4
  export * from './translation-manager';
8
5
  export * from './translation.models';
9
6
  export * from './translation';
10
7
  export * from './utils-i18n-extract-gettext-translate-from-html';
11
8
  export * from './utils-i18n-html';
12
9
  export * from './utils-po-file';
13
- export * from './i18n/lib.translation';
10
+ export * from './i18n/lib.translation';
@@ -1,4 +1,4 @@
1
- import { ChangeDetectorRef, WritableSignal } from '@angular/core';
1
+ import type { WritableSignal as WritableSignalType } from '@angular/core';
2
2
  import { Observable } from 'rxjs';
3
3
  import { UtilsI18n } from 'tnp-core/lib-esm';
4
4
  import { TranslationManager } from './translation-manager';
@@ -11,12 +11,11 @@ export declare class Translation {
11
11
  static manager: TranslationManager;
12
12
  /**
13
13
  * Example how to use it:
14
- * const t = Translation.for(Taon.__FILE_RELATIVE_PATH, Taon.LANG_IMPORT_MAP);
14
+ * const t = Translation.for('src/lib/translation.ts', {"src/lib/translation.ts":{"en-US":async () => (await import('./i18n/translation.ts.en-US.i18n.data')).default,"pl-PL":async () => (await import('./i18n/translation.ts.pl-PL.i18n.data')).default}} as any);
15
15
  */
16
16
  static for(fileRelativePath: string, langImportMap: TaonTranslationsMapImport, opt?: {
17
17
  debug?: boolean;
18
18
  }): Translation;
19
- cdr?: ChangeDetectorRef;
20
19
  private lookup;
21
20
  private readonly loadingSubjectSrc;
22
21
  readonly isLoadingLang$: Observable<boolean>;
@@ -31,7 +30,7 @@ export declare class Translation {
31
30
  gettext: (text: string, params?: TranslationParams, context?: string) => string;
32
31
  private createSignal;
33
32
  readonly signal: {
34
- gettext: (text: string, params?: TranslationParams, context?: string) => WritableSignal<string>;
33
+ gettext: (text: string, params?: TranslationParams, context?: string) => WritableSignalType<string>;
35
34
  };
36
35
  private createObservable;
37
36
  readonly $: {
@@ -45,4 +44,4 @@ export declare class Translation {
45
44
  private createLookup;
46
45
  private key;
47
46
  private interpolate;
48
- }
47
+ }
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -21,4 +21,4 @@ export declare const CURRENT_PACKAGE_TAON_VERSION = "v21";
21
21
  /**
22
22
  * Autogenerated by current cli tool. Use *tnp release* to bump version.
23
23
  */
24
- export declare const CURRENT_PACKAGE_VERSION = "21.0.44";
24
+ export declare const CURRENT_PACKAGE_VERSION = "21.0.45";
@@ -22,6 +22,6 @@ export const CURRENT_PACKAGE_TAON_VERSION = 'v21';
22
22
  /**
23
23
  * Autogenerated by current cli tool. Use *tnp release* to bump version.
24
24
  */
25
- export const CURRENT_PACKAGE_VERSION = '21.0.44';
25
+ export const CURRENT_PACKAGE_VERSION = '21.0.45';
26
26
  // THIS FILE IS GENERATED - DO NOT MODIFY
27
27
  //# sourceMappingURL=build-info._auto-generated_.js.map
@@ -1,6 +1,4 @@
1
1
  export * from './env.angular-node-app';
2
- export * from './env.docs-webapp';
3
2
  export * from './env.electron-app';
4
3
  export * from './env.mobile-app';
5
- export * from './env.npm-lib-and-cli-tool';
6
4
  export * from './env.vscode-plugin';
@@ -1,7 +1,5 @@
1
1
  export * from './env.angular-node-app';
2
- export * from './env.docs-webapp';
3
2
  export * from './env.electron-app';
4
3
  export * from './env.mobile-app';
5
- export * from './env.npm-lib-and-cli-tool';
6
4
  export * from './env.vscode-plugin';
7
5
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":[""],"names":[],"mappings":"AAAA,cAAc,wBAAwB,CAAC;AACvC,cAAc,mBAAmB,CAAC;AAClC,cAAc,oBAAoB,CAAC;AACnC,cAAc,kBAAkB,CAAC;AACjC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,qBAAqB,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":[""],"names":[],"mappings":"AAAA,cAAc,wBAAwB,CAAC;AACvC,cAAc,oBAAoB,CAAC;AACnC,cAAc,kBAAkB,CAAC;AACjC,cAAc,qBAAqB,CAAC"}
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "name": "@taon-dev/i18n/lib-prod",
3
- "version": "21.0.44"
3
+ "version": "21.0.45"
4
4
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@taon-dev/i18n",
3
- "version": "21.0.44",
3
+ "version": "21.0.45",
4
4
  "scripts": {
5
5
  "taon init": "taon init",
6
6
  "taon start": "taon start",
@@ -28,7 +28,7 @@ const CURRENT_PACKAGE_TAON_VERSION = 'v21';
28
28
  /**
29
29
  * Autogenerated by current cli tool. Use *tnp release* to bump version.
30
30
  */
31
- const CURRENT_PACKAGE_VERSION = '21.0.44';
31
+ const CURRENT_PACKAGE_VERSION = '21.0.45';
32
32
  // THIS FILE IS GENERATED - DO NOT MODIFY
33
33
 
34
34
  const MODEL_ID = 'Xenova/nllb-200-distilled-600M';