@_linked/translation 0.4.1 → 0.4.3
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/lib/esm/index.d.ts +1 -7
- package/lib/esm/index.js +1 -7
- package/lib/esm/index.js.map +1 -1
- package/lib/esm/shapes/index.d.ts +9 -0
- package/lib/esm/shapes/index.js +13 -0
- package/lib/esm/shapes/index.js.map +1 -0
- package/package.json +8 -7
- package/src/index.ts +1 -7
- package/src/shapes/index.ts +13 -0
package/lib/esm/index.d.ts
CHANGED
|
@@ -1,11 +1,5 @@
|
|
|
1
1
|
import './ontologies/translation.register.js';
|
|
2
|
-
import './shapes/
|
|
3
|
-
import './shapes/TranslationKeyVersion.js';
|
|
4
|
-
import './shapes/TranslationRelease.js';
|
|
5
|
-
import './shapes/TranslationUnit.js';
|
|
6
|
-
import './shapes/TranslationRevision.js';
|
|
7
|
-
import './shapes/GlossaryTerm.js';
|
|
8
|
-
import './shapes/TranslationInventoryOrigin.js';
|
|
2
|
+
import './shapes/index.js';
|
|
9
3
|
export { canAuthorTranslation, configureTranslationAuthorization, } from './authorization.js';
|
|
10
4
|
export type { TranslationAuthoringAction, TranslationAuthorizationRequest, TranslationAuthorizationResolver, } from './authorization.js';
|
|
11
5
|
export { TranslationKey } from './shapes/TranslationKey.js';
|
package/lib/esm/index.js
CHANGED
|
@@ -2,13 +2,7 @@
|
|
|
2
2
|
// + shapes into the LINKED tree. Safe on client and server — no backend/Node
|
|
3
3
|
// code here (that lives in ./backend.ts). Ontology FIRST, then shapes.
|
|
4
4
|
import './ontologies/translation.register.js';
|
|
5
|
-
import './shapes/
|
|
6
|
-
import './shapes/TranslationKeyVersion.js';
|
|
7
|
-
import './shapes/TranslationRelease.js';
|
|
8
|
-
import './shapes/TranslationUnit.js';
|
|
9
|
-
import './shapes/TranslationRevision.js';
|
|
10
|
-
import './shapes/GlossaryTerm.js';
|
|
11
|
-
import './shapes/TranslationInventoryOrigin.js';
|
|
5
|
+
import './shapes/index.js';
|
|
12
6
|
export { canAuthorTranslation, configureTranslationAuthorization, } from './authorization.js';
|
|
13
7
|
export { TranslationKey } from './shapes/TranslationKey.js';
|
|
14
8
|
export { TranslationKeyVersion } from './shapes/TranslationKeyVersion.js';
|
package/lib/esm/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,+EAA+E;AAC/E,6EAA6E;AAC7E,uEAAuE;AACvE,OAAO,sCAAsC,CAAC;AAC9C,OAAO,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,+EAA+E;AAC/E,6EAA6E;AAC7E,uEAAuE;AACvE,OAAO,sCAAsC,CAAC;AAC9C,OAAO,mBAAmB,CAAC;AAE3B,OAAO,EACL,oBAAoB,EACpB,iCAAiC,GAClC,MAAM,oBAAoB,CAAC;AAO5B,OAAO,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAC5D,OAAO,EAAE,qBAAqB,EAAE,MAAM,mCAAmC,CAAC;AAC1E,OAAO,EAAE,kBAAkB,EAAE,MAAM,gCAAgC,CAAC;AACpE,OAAO,EAAE,eAAe,EAAE,MAAM,6BAA6B,CAAC;AAC9D,OAAO,EAAE,mBAAmB,EAAE,MAAM,iCAAiC,CAAC;AACtE,OAAO,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AACxD,OAAO,EAAE,0BAA0B,EAAE,MAAM,wCAAwC,CAAC;AACpF,OAAO,EAAE,EAAE,EAAE,MAAM,6BAA6B,CAAC;AACjD,OAAO,EACL,oBAAoB,EACpB,kBAAkB,EAClB,uBAAuB,EACvB,wBAAwB,EACxB,wBAAwB,EACxB,mCAAmC,EACnC,SAAS,GACV,MAAM,kBAAkB,CAAC;AAQ1B,OAAO,EACL,6BAA6B,EAC7B,8BAA8B,EAC9B,sCAAsC,GACvC,MAAM,oBAAoB,CAAC;AAO5B,OAAO,EACL,4BAA4B,EAC5B,kCAAkC,EAClC,iCAAiC,EACjC,yCAAyC,EACzC,8BAA8B,GAC/B,MAAM,gBAAgB,CAAC;AAexB,OAAO,EACL,uCAAuC,EACvC,oCAAoC,GACrC,MAAM,uBAAuB,CAAC;AAQ/B,OAAO,EACL,8BAA8B,EAC9B,2BAA2B,EAC3B,2BAA2B,EAC3B,6BAA6B,EAC7B,0CAA0C,EAC1C,gCAAgC,EAChC,mCAAmC,GACpC,MAAM,eAAe,CAAC;AAkBvB,OAAO,EACL,qBAAqB,EACrB,eAAe,EACf,YAAY,EACZ,mBAAmB,EACnB,SAAS,EACT,eAAe,EACf,0BAA0B,GAC3B,MAAM,aAAa,CAAC;AAerB,OAAO,EAAE,iCAAiC,EAAE,MAAM,aAAa,CAAC;AAMhE,OAAO,EAAE,qBAAqB,EAAE,MAAM,kBAAkB,CAAC;AACzD,OAAO,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAEpE,OAAO,EACL,uCAAuC,EACvC,wBAAwB,EACxB,gBAAgB,EAChB,uBAAuB,GACxB,MAAM,mBAAmB,CAAC;AAO3B,OAAO,EACL,kCAAkC,EAClC,wBAAwB,EACxB,uBAAuB,EACvB,6BAA6B,EAC7B,+BAA+B,EAC/B,8BAA8B,EAC9B,iCAAiC,GAClC,MAAM,cAAc,CAAC;AAsCtB,OAAO,EAAE,mBAAmB,EAAE,MAAM,iCAAiC,CAAC;AACtE,cAAc,gBAAgB,CAAC","sourcesContent":["// Isomorphic barrel (Plan 014 AD-G): side-effect imports register the ontology\n// + shapes into the LINKED tree. Safe on client and server — no backend/Node\n// code here (that lives in ./backend.ts). Ontology FIRST, then shapes.\nimport './ontologies/translation.register.js';\nimport './shapes/index.js';\n\nexport {\n canAuthorTranslation,\n configureTranslationAuthorization,\n} from './authorization.js';\nexport type {\n TranslationAuthoringAction,\n TranslationAuthorizationRequest,\n TranslationAuthorizationResolver,\n} from './authorization.js';\n\nexport { TranslationKey } from './shapes/TranslationKey.js';\nexport { TranslationKeyVersion } from './shapes/TranslationKeyVersion.js';\nexport { TranslationRelease } from './shapes/TranslationRelease.js';\nexport { TranslationUnit } from './shapes/TranslationUnit.js';\nexport { TranslationRevision } from './shapes/TranslationRevision.js';\nexport { GlossaryTerm } from './shapes/GlossaryTerm.js';\nexport { TranslationInventoryOrigin } from './shapes/TranslationInventoryOrigin.js';\nexport { tr } from './ontologies/translation.js';\nexport {\n canonicalLanguageTag,\n classifyKeyVersion,\n createArgumentSignature,\n createMonotonicVersionId,\n deriveBackfillKeyVersion,\n deriveTranslationKeyVersionContract,\n sha256Hex,\n} from './key-version.js';\nexport type {\n DerivedBackfillKeyVersion,\n ExtractedTranslationKeyContract,\n KeyVersionDecision,\n TranslationKeyVersionContract,\n TranslationKeyVersionLike,\n} from './key-version.js';\nexport {\n defineShapeTranslationCatalog,\n installShapeTranslationCatalog,\n shapeCatalogTranslationDiscoverySource,\n} from './shape-catalog.js';\nexport type {\n ShapeTranslationCatalog,\n ShapeTranslationCatalogEntry,\n ShapeTranslationCatalogTarget,\n ShapeTranslationInstallReport,\n} from './shape-catalog.js';\nexport {\n discoverTranslationInventory,\n manifestTranslationDiscoverySource,\n parseTranslationDiscoveryManifest,\n translationBuildDeclarationsFromInventory,\n translationDeclarationIdentity,\n} from './discovery.js';\nexport type {\n DiscoverTranslationInventoryOptions,\n TranslationDeclaration,\n TranslationDeclarationProvenance,\n TranslationDeclarationSource,\n TranslationDiscoveryContext,\n TranslationDiscoveryManifest,\n TranslationDiscoveryManifestEntry,\n TranslationDiscoverySource,\n TranslationInventoryConflict,\n TranslationInventoryItem,\n TranslationInventorySnapshot,\n TranslationInventoryStatus,\n} from './discovery.js';\nexport {\n linkedPackageTranslationDiscoverySource,\n parseLinkedPackageTranslationCatalog,\n} from './linked-discovery.js';\nexport type {\n LinkedComponentTranslationCatalog,\n LinkedContentTranslationCatalogEntry,\n LinkedPackageTranslationCatalog,\n LinkedSemanticCatalogEntry,\n LinkedSemanticEntryType,\n} from './linked-discovery.js';\nexport {\n clearTranslationFormatAdapters,\n getTranslationFormatAdapter,\n isConfirmedBuildDeclaration,\n listTranslationFormatAdapters,\n normalizeParsedTranslationExchangeDocument,\n registerTranslationFormatAdapter,\n validateTranslationExchangeDocument,\n} from './exchange.js';\nexport type {\n ParsedTranslationExchangeDocument,\n ParsedTranslationExchangeEntry,\n SerializedTranslationDocument,\n TranslationBuildDeclaration,\n TranslationDeclarationKind,\n TranslationDeclarationStatus,\n TranslationExchangeDocument,\n TranslationExchangeEntry,\n TranslationExchangeKind,\n TranslationExchangeValue,\n TranslationFormat,\n TranslationFormatAdapter,\n TranslationImportDisposition,\n TranslationImportDryRun,\n TranslationImportDryRunEntry,\n} from './exchange.js';\nexport {\n commitVersionedImport,\n flattenMessages,\n hasIcuSyntax,\n planVersionedImport,\n runImport,\n tolgeeCdnSource,\n translationUnitContentHash,\n} from './import.js';\nexport type {\n ImportMergePolicy,\n ImportOptions,\n ImportReport,\n ImportTarget,\n ParsedUnit,\n TranslationImportSource,\n VersionedImportCommitReport,\n VersionedImportCurrentState,\n VersionedImportDecision,\n VersionedImportPlan,\n VersionedImportPlanOptions,\n VersionedImportTarget,\n} from './import.js';\nexport { createTranslationExchangeDocument } from './export.js';\nexport type {\n TranslationExportFinding,\n TranslationExportOptions,\n TranslationExportResult,\n} from './export.js';\nexport { translationCsvAdapter } from './formats/csv.js';\nexport { xliff12Adapter, xliff20Adapter } from './formats/xliff.js';\nexport type { XliffFinding, XliffParseOptions } from './formats/xliff.js';\nexport {\n DEFAULT_TRANSLATION_JSON_ARCHIVE_LIMITS,\n i18nextJsonFormatAdapter,\n parseI18nextJson,\n serializeI18nextJsonZip,\n} from './formats/json.js';\nexport type {\n I18nextJsonLayout,\n TranslationJsonArchiveLimits,\n TranslationJsonParseOptions,\n TranslationJsonSerializeOptions,\n} from './formats/json.js';\nexport {\n DEFAULT_TRANSLATION_ARCHIVE_LIMITS,\n createTranslationArchive,\n parseTranslationArchive,\n planTranslationArchiveRestore,\n TRANSLATION_ARCHIVE_COLLECTIONS,\n TRANSLATION_ARCHIVE_EXCLUSIONS,\n TRANSLATION_ARCHIVE_MANIFEST_PATH,\n} from './archive.js';\nexport type {\n ParsedTranslationArchive,\n PlanTranslationArchiveRestoreOptions,\n SerializedTranslationArchive,\n TranslationArchiveCollection,\n TranslationArchiveContentMapping,\n TranslationArchiveEntity,\n TranslationArchiveEntityInput,\n TranslationArchiveFileInventory,\n TranslationArchiveJson,\n TranslationArchiveManifest,\n TranslationArchiveObjectInput,\n TranslationArchiveObjectInventory,\n TranslationArchiveRestoreDecision,\n TranslationArchiveRestorePlan,\n TranslationArchiveSnapshot,\n TranslationArchiveTargetRecord,\n} from './archive.js';\nexport type {\n GlossaryTermRecord,\n TranslationEntryRecord,\n TranslationRevisionRecord,\n TranslationRevisionStatus,\n TranslationMemoryMatchKind,\n TranslationMemoryMatchRecord,\n TranslationMemoryPretranslateCandidate,\n TranslationMemoryPretranslateReport,\n TranslationMemoryRecord,\n TranslationProposalDecision,\n TranslationReleaseChannel,\n TranslationReleaseRecord,\n TranslationReleaseStatus,\n TranslationState,\n TranslationKeyVersionRecord,\n TranslationUnitRecord,\n} from './records.js';\n\nexport { TranslationLanguage } from './shapes/TranslationLanguage.js';\nexport * from './languages.js';\n"]}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import '../ontologies/translation.register.js';
|
|
2
|
+
import './TranslationKey.js';
|
|
3
|
+
import './TranslationKeyVersion.js';
|
|
4
|
+
import './TranslationRelease.js';
|
|
5
|
+
import './TranslationUnit.js';
|
|
6
|
+
import './TranslationRevision.js';
|
|
7
|
+
import './GlossaryTerm.js';
|
|
8
|
+
import './TranslationInventoryOrigin.js';
|
|
9
|
+
import './TranslationLanguage.js';
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
// Registers every shape this package defines. Side-effect imports only: a
|
|
2
|
+
// consumer (or the host app) can load this one module to get the full set of
|
|
3
|
+
// shapes registered, without pulling in components, providers or other exports.
|
|
4
|
+
import '../ontologies/translation.register.js';
|
|
5
|
+
import './TranslationKey.js';
|
|
6
|
+
import './TranslationKeyVersion.js';
|
|
7
|
+
import './TranslationRelease.js';
|
|
8
|
+
import './TranslationUnit.js';
|
|
9
|
+
import './TranslationRevision.js';
|
|
10
|
+
import './GlossaryTerm.js';
|
|
11
|
+
import './TranslationInventoryOrigin.js';
|
|
12
|
+
import './TranslationLanguage.js';
|
|
13
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/shapes/index.ts"],"names":[],"mappings":"AAAA,0EAA0E;AAC1E,6EAA6E;AAC7E,gFAAgF;AAChF,OAAO,uCAAuC,CAAC;AAE/C,OAAO,qBAAqB,CAAC;AAC7B,OAAO,4BAA4B,CAAC;AACpC,OAAO,yBAAyB,CAAC;AACjC,OAAO,sBAAsB,CAAC;AAC9B,OAAO,0BAA0B,CAAC;AAClC,OAAO,mBAAmB,CAAC;AAC3B,OAAO,iCAAiC,CAAC;AACzC,OAAO,0BAA0B,CAAC","sourcesContent":["// Registers every shape this package defines. Side-effect imports only: a\n// consumer (or the host app) can load this one module to get the full set of\n// shapes registered, without pulling in components, providers or other exports.\nimport '../ontologies/translation.register.js';\n\nimport './TranslationKey.js';\nimport './TranslationKeyVersion.js';\nimport './TranslationRelease.js';\nimport './TranslationUnit.js';\nimport './TranslationRevision.js';\nimport './GlossaryTerm.js';\nimport './TranslationInventoryOrigin.js';\nimport './TranslationLanguage.js';\n"]}
|
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@_linked/translation",
|
|
3
3
|
"description": "LINKED translation management — graph-native i18n keys + units, Tolgee-compatible client, CDN delivery. Built inside Create Now for now; structured to extract to its own repo unchanged.",
|
|
4
|
-
"version": "0.4.
|
|
5
|
-
"packageManager": "npm@11.
|
|
4
|
+
"version": "0.4.3",
|
|
5
|
+
"packageManager": "npm@11.20.0",
|
|
6
6
|
"linkedPackage": true,
|
|
7
7
|
"type": "module",
|
|
8
8
|
"main": "lib/esm/index.js",
|
|
@@ -25,9 +25,10 @@
|
|
|
25
25
|
},
|
|
26
26
|
"scripts": {
|
|
27
27
|
"start": "npm exec linked dev",
|
|
28
|
-
"build": "npm exec linked build &&
|
|
29
|
-
"test": "vitest run",
|
|
30
|
-
"
|
|
28
|
+
"build": "npm exec linked build && npm run check:subpaths",
|
|
29
|
+
"test": "vitest run && npm run check:subpaths",
|
|
30
|
+
"check:subpaths": "node scripts/check-subpaths.mjs",
|
|
31
|
+
"prepublishOnly": "npm run check:subpaths",
|
|
31
32
|
"postpublish": "npm exec linked register"
|
|
32
33
|
},
|
|
33
34
|
"keywords": [
|
|
@@ -129,7 +130,7 @@
|
|
|
129
130
|
"react-dom": "^18.3.1",
|
|
130
131
|
"typescript": "5.7.3",
|
|
131
132
|
"vitest": "^3.2.4",
|
|
132
|
-
"@changesets/cli": "^
|
|
133
|
-
"@changesets/changelog-github": "^0.
|
|
133
|
+
"@changesets/cli": "^3.0.0",
|
|
134
|
+
"@changesets/changelog-github": "^1.0.0"
|
|
134
135
|
}
|
|
135
136
|
}
|
package/src/index.ts
CHANGED
|
@@ -2,13 +2,7 @@
|
|
|
2
2
|
// + shapes into the LINKED tree. Safe on client and server — no backend/Node
|
|
3
3
|
// code here (that lives in ./backend.ts). Ontology FIRST, then shapes.
|
|
4
4
|
import './ontologies/translation.register.js';
|
|
5
|
-
import './shapes/
|
|
6
|
-
import './shapes/TranslationKeyVersion.js';
|
|
7
|
-
import './shapes/TranslationRelease.js';
|
|
8
|
-
import './shapes/TranslationUnit.js';
|
|
9
|
-
import './shapes/TranslationRevision.js';
|
|
10
|
-
import './shapes/GlossaryTerm.js';
|
|
11
|
-
import './shapes/TranslationInventoryOrigin.js';
|
|
5
|
+
import './shapes/index.js';
|
|
12
6
|
|
|
13
7
|
export {
|
|
14
8
|
canAuthorTranslation,
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
// Registers every shape this package defines. Side-effect imports only: a
|
|
2
|
+
// consumer (or the host app) can load this one module to get the full set of
|
|
3
|
+
// shapes registered, without pulling in components, providers or other exports.
|
|
4
|
+
import '../ontologies/translation.register.js';
|
|
5
|
+
|
|
6
|
+
import './TranslationKey.js';
|
|
7
|
+
import './TranslationKeyVersion.js';
|
|
8
|
+
import './TranslationRelease.js';
|
|
9
|
+
import './TranslationUnit.js';
|
|
10
|
+
import './TranslationRevision.js';
|
|
11
|
+
import './GlossaryTerm.js';
|
|
12
|
+
import './TranslationInventoryOrigin.js';
|
|
13
|
+
import './TranslationLanguage.js';
|