@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.
- package/VERIFIED-BUILD-DATA.jsonc +3 -3
- package/browser/fesm2022/i18n-browser.mjs +1 -1
- package/browser/fesm2022/i18n-browser.mjs.map +1 -1
- package/browser/package.json +1 -1
- package/browser/types/i18n-browser.d.ts +1 -1
- package/browser-prod/fesm2022/i18n-browser-prod.mjs +1 -1
- package/browser-prod/fesm2022/i18n-browser-prod.mjs.map +1 -1
- package/browser-prod/package.json +1 -1
- package/browser-prod/types/i18n-browser-prod.d.ts +1 -1
- package/full-dts/build-info._auto-generated_.d.ts +1 -1
- package/lib/build-info._auto-generated_.d.ts +1 -1
- package/lib/build-info._auto-generated_.js +1 -1
- package/lib/i18n/lib.translation.d.ts +2 -2
- package/lib/index._auto-generated_.d.ts +1 -4
- package/lib/local-translation.d.ts +2 -2
- package/lib/package.json +1 -1
- package/lib/translation-manager.d.ts +2 -2
- package/lib/translation.d.ts +4 -5
- package/lib/translation.models.d.ts +2 -2
- package/lib/utils-i18n-extract-gettext-translate-from-html.d.ts +2 -2
- package/lib/utils-i18n-extract-gettext-translate-from-html.test.d.ts +0 -1
- package/lib/utils-i18n-html.d.ts +2 -2
- package/lib/utils-i18n-html.test.d.ts +0 -1
- package/lib/utils-po-file-extracto-to-json.test.d.ts +0 -1
- package/lib/utils-po-file.d.ts +2 -2
- package/lib/utils-po-file.test.d.ts +0 -1
- package/lib-esm/lib/build-info._auto-generated_.d.ts +1 -1
- package/lib-esm/lib/build-info._auto-generated_.js +1 -1
- package/lib-esm/lib/index._auto-generated_.d.ts +1 -4
- package/lib-esm/lib/translation.d.ts +4 -5
- package/lib-esm/lib/utils-i18n-extract-gettext-translate-from-html.test.d.ts +0 -1
- package/lib-esm/lib/utils-i18n-html.test.d.ts +0 -1
- package/lib-esm/lib/utils-po-file-extracto-to-json.test.d.ts +0 -1
- package/lib-esm/lib/utils-po-file.test.d.ts +0 -1
- package/lib-prod/build-info._auto-generated_.d.ts +1 -1
- package/lib-prod/build-info._auto-generated_.js +1 -1
- package/lib-prod/env/index.d.ts +0 -2
- package/lib-prod/env/index.js +0 -2
- package/lib-prod/env/index.js.map +1 -1
- package/lib-prod/package.json +1 -1
- package/package.json +1 -1
- package/websql/fesm2022/i18n-websql.mjs +1 -1
- package/websql/fesm2022/i18n-websql.mjs.map +1 -1
- package/websql/package.json +1 -1
- package/websql/types/i18n-websql.d.ts +1 -1
- package/websql-prod/fesm2022/i18n-websql-prod.mjs +1 -1
- package/websql-prod/fesm2022/i18n-websql-prod.mjs.map +1 -1
- package/websql-prod/package.json +1 -1
- package/websql-prod/types/i18n-websql-prod.d.ts +1 -1
- package/full-dts/env/env.angular-node-app.d.ts +0 -68
- package/full-dts/env/env.docs-webapp.d.ts +0 -68
- package/full-dts/env/env.electron-app.d.ts +0 -68
- package/full-dts/env/env.mobile-app.d.ts +0 -68
- package/full-dts/env/env.npm-lib-and-cli-tool.d.ts +0 -68
- package/full-dts/env/env.vscode-plugin.d.ts +0 -68
- package/full-dts/env/index.d.ts +0 -6
- package/lib/env/env.angular-node-app.d.ts +0 -68
- package/lib/env/env.angular-node-app.js +0 -145
- package/lib/env/env.angular-node-app.js.map +0 -1
- package/lib/env/env.docs-webapp.d.ts +0 -68
- package/lib/env/env.docs-webapp.js +0 -145
- package/lib/env/env.docs-webapp.js.map +0 -1
- package/lib/env/env.electron-app.d.ts +0 -68
- package/lib/env/env.electron-app.js +0 -145
- package/lib/env/env.electron-app.js.map +0 -1
- package/lib/env/env.mobile-app.d.ts +0 -68
- package/lib/env/env.mobile-app.js +0 -145
- package/lib/env/env.mobile-app.js.map +0 -1
- package/lib/env/env.npm-lib-and-cli-tool.d.ts +0 -68
- package/lib/env/env.npm-lib-and-cli-tool.js +0 -145
- package/lib/env/env.npm-lib-and-cli-tool.js.map +0 -1
- package/lib/env/env.vscode-plugin.d.ts +0 -68
- package/lib/env/env.vscode-plugin.js +0 -145
- package/lib/env/env.vscode-plugin.js.map +0 -1
- package/lib/env/index.d.ts +0 -6
- package/lib/env/index.js +0 -23
- package/lib/env/index.js.map +0 -1
- package/lib-esm/app/main-page/main-page.active.context.d.ts +0 -0
- package/lib-esm/app/main-page/main-page.active.context.js +0 -2
- package/lib-esm/app/main-page/main-page.active.context.js.map +0 -1
- package/lib-esm/app/main-page/main-page.container.d.ts +0 -0
- package/lib-esm/app/main-page/main-page.container.js +0 -2
- package/lib-esm/app/main-page/main-page.container.js.map +0 -1
- package/lib-esm/app/main-page/main-page.routes.d.ts +0 -0
- package/lib-esm/app/main-page/main-page.routes.js +0 -2
- package/lib-esm/app/main-page/main-page.routes.js.map +0 -1
- package/lib-esm/lib/env/env.angular-node-app.d.ts +0 -68
- package/lib-esm/lib/env/env.angular-node-app.js +0 -140
- package/lib-esm/lib/env/env.angular-node-app.js.map +0 -1
- package/lib-esm/lib/env/env.docs-webapp.d.ts +0 -68
- package/lib-esm/lib/env/env.docs-webapp.js +0 -140
- package/lib-esm/lib/env/env.docs-webapp.js.map +0 -1
- package/lib-esm/lib/env/env.electron-app.d.ts +0 -68
- package/lib-esm/lib/env/env.electron-app.js +0 -140
- package/lib-esm/lib/env/env.electron-app.js.map +0 -1
- package/lib-esm/lib/env/env.mobile-app.d.ts +0 -68
- package/lib-esm/lib/env/env.mobile-app.js +0 -140
- package/lib-esm/lib/env/env.mobile-app.js.map +0 -1
- package/lib-esm/lib/env/env.npm-lib-and-cli-tool.d.ts +0 -68
- package/lib-esm/lib/env/env.npm-lib-and-cli-tool.js +0 -140
- package/lib-esm/lib/env/env.npm-lib-and-cli-tool.js.map +0 -1
- package/lib-esm/lib/env/env.vscode-plugin.d.ts +0 -68
- package/lib-esm/lib/env/env.vscode-plugin.js +0 -140
- package/lib-esm/lib/env/env.vscode-plugin.js.map +0 -1
- package/lib-esm/lib/env/index.d.ts +0 -6
- package/lib-esm/lib/env/index.js +0 -7
- package/lib-esm/lib/env/index.js.map +0 -1
- package/lib-prod/env/env.docs-webapp.d.ts +0 -68
- package/lib-prod/env/env.docs-webapp.js +0 -140
- package/lib-prod/env/env.docs-webapp.js.map +0 -1
- package/lib-prod/env/env.npm-lib-and-cli-tool.d.ts +0 -68
- package/lib-prod/env/env.npm-lib-and-cli-tool.js +0 -140
- package/lib-prod/env/env.npm-lib-and-cli-tool.js.map +0 -1
package/lib/translation.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import type { WritableSignal as WritableSignalType } from '@angular/core';
|
|
2
2
|
import { Observable } from 'rxjs';
|
|
3
|
-
import { UtilsI18n } from 'tnp-core
|
|
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(
|
|
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) =>
|
|
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
|
|
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 +0,0 @@
|
|
|
1
|
-
export {};
|
package/lib/utils-i18n-html.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { UtilsI18n } from 'tnp-core
|
|
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 {};
|
package/lib/utils-po-file.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { UtilsI18n } from 'tnp-core
|
|
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 {};
|
|
@@ -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.
|
|
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 {
|
|
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(
|
|
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) =>
|
|
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 {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -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.
|
|
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
|
package/lib-prod/env/index.d.ts
CHANGED
package/lib-prod/env/index.js
CHANGED
|
@@ -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,
|
|
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"}
|
package/lib-prod/package.json
CHANGED
package/package.json
CHANGED
|
@@ -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.
|
|
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';
|