@contractspec/lib.surface-runtime 0.2.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/README.md +164 -0
- package/dist/adapters/ai-sdk-stub.d.ts +5 -0
- package/dist/adapters/ai-sdk-stub.js +13 -0
- package/dist/adapters/blocknote-stub.d.ts +6 -0
- package/dist/adapters/blocknote-stub.js +31 -0
- package/dist/adapters/dnd-kit-adapter.d.ts +13 -0
- package/dist/adapters/dnd-kit-adapter.js +44 -0
- package/dist/adapters/dnd-kit-stub.d.ts +6 -0
- package/dist/adapters/dnd-kit-stub.js +8 -0
- package/dist/adapters/floating-ui-stub.d.ts +6 -0
- package/dist/adapters/floating-ui-stub.js +19 -0
- package/dist/adapters/index.d.ts +11 -0
- package/dist/adapters/index.js +176 -0
- package/dist/adapters/interfaces.d.ts +75 -0
- package/dist/adapters/interfaces.js +1 -0
- package/dist/adapters/motion-stub.d.ts +7 -0
- package/dist/adapters/motion-stub.js +27 -0
- package/dist/adapters/motion-stub.test.d.ts +1 -0
- package/dist/adapters/resizable-panels-stub.d.ts +6 -0
- package/dist/adapters/resizable-panels-stub.js +46 -0
- package/dist/adapters/resizable-panels-stub.test.d.ts +1 -0
- package/dist/browser/adapters/ai-sdk-stub.js +12 -0
- package/dist/browser/adapters/blocknote-stub.js +30 -0
- package/dist/browser/adapters/dnd-kit-adapter.js +43 -0
- package/dist/browser/adapters/dnd-kit-stub.js +7 -0
- package/dist/browser/adapters/floating-ui-stub.js +18 -0
- package/dist/browser/adapters/index.js +175 -0
- package/dist/browser/adapters/interfaces.js +0 -0
- package/dist/browser/adapters/motion-stub.js +26 -0
- package/dist/browser/adapters/resizable-panels-stub.js +45 -0
- package/dist/browser/evals/golden-context.js +0 -0
- package/dist/browser/evals/golden-harness.js +848 -0
- package/dist/browser/examples/pm-workbench.bundle.js +476 -0
- package/dist/browser/i18n/catalogs/en.js +71 -0
- package/dist/browser/i18n/catalogs/es.js +32 -0
- package/dist/browser/i18n/catalogs/fr.js +32 -0
- package/dist/browser/i18n/catalogs/index.js +133 -0
- package/dist/browser/i18n/index.js +173 -0
- package/dist/browser/i18n/keys.js +19 -0
- package/dist/browser/i18n/messages.js +143 -0
- package/dist/browser/index.js +2466 -0
- package/dist/browser/react/BundleProvider.js +47 -0
- package/dist/browser/react/BundleRenderer.js +726 -0
- package/dist/browser/react/OverlayConflictResolver.js +255 -0
- package/dist/browser/react/PatchProposalCard.js +255 -0
- package/dist/browser/react/RegionRenderer.js +128 -0
- package/dist/browser/react/SlotRenderer.js +118 -0
- package/dist/browser/react/WidgetPalette.js +59 -0
- package/dist/browser/react/index.js +792 -0
- package/dist/browser/runtime/apply-surface-patch.js +322 -0
- package/dist/browser/runtime/audit-events.js +137 -0
- package/dist/browser/runtime/build-context.js +55 -0
- package/dist/browser/runtime/extension-registry.js +58 -0
- package/dist/browser/runtime/field-renderer-registry.js +145 -0
- package/dist/browser/runtime/index.js +1496 -0
- package/dist/browser/runtime/overlay-alignment.js +83 -0
- package/dist/browser/runtime/overlay-signer.js +15 -0
- package/dist/browser/runtime/override-store.js +52 -0
- package/dist/browser/runtime/planner-prompt.js +67 -0
- package/dist/browser/runtime/planner-tools.js +77 -0
- package/dist/browser/runtime/policy-eval.js +155 -0
- package/dist/browser/runtime/preference-adapter.js +67 -0
- package/dist/browser/runtime/resolve-bundle.js +767 -0
- package/dist/browser/runtime/resolve-preferences.js +59 -0
- package/dist/browser/runtime/rollback.js +347 -0
- package/dist/browser/runtime/widget-registry.js +36 -0
- package/dist/browser/spec/define-module-bundle.js +113 -0
- package/dist/browser/spec/index.js +319 -0
- package/dist/browser/spec/types.js +0 -0
- package/dist/browser/spec/validate-bundle.js +65 -0
- package/dist/browser/spec/validate-surface-patch.js +206 -0
- package/dist/browser/spec/verification-snapshot-types.js +0 -0
- package/dist/browser/telemetry/index.js +20 -0
- package/dist/browser/telemetry/surface-metrics.js +20 -0
- package/dist/evals/golden-context.d.ts +24 -0
- package/dist/evals/golden-context.js +1 -0
- package/dist/evals/golden-harness.d.ts +29 -0
- package/dist/evals/golden-harness.js +849 -0
- package/dist/evals/golden-harness.test.d.ts +1 -0
- package/dist/examples/pm-workbench.bundle.d.ts +177 -0
- package/dist/examples/pm-workbench.bundle.js +477 -0
- package/dist/i18n/catalogs/en.d.ts +1 -0
- package/dist/i18n/catalogs/en.js +72 -0
- package/dist/i18n/catalogs/es.d.ts +1 -0
- package/dist/i18n/catalogs/es.js +33 -0
- package/dist/i18n/catalogs/fr.d.ts +1 -0
- package/dist/i18n/catalogs/fr.js +33 -0
- package/dist/i18n/catalogs/index.d.ts +3 -0
- package/dist/i18n/catalogs/index.js +134 -0
- package/dist/i18n/index.d.ts +5 -0
- package/dist/i18n/index.js +174 -0
- package/dist/i18n/keys.d.ts +20 -0
- package/dist/i18n/keys.js +20 -0
- package/dist/i18n/messages.d.ts +5 -0
- package/dist/i18n/messages.js +144 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.js +2467 -0
- package/dist/node/adapters/ai-sdk-stub.js +12 -0
- package/dist/node/adapters/blocknote-stub.js +30 -0
- package/dist/node/adapters/dnd-kit-adapter.js +43 -0
- package/dist/node/adapters/dnd-kit-stub.js +7 -0
- package/dist/node/adapters/floating-ui-stub.js +18 -0
- package/dist/node/adapters/index.js +175 -0
- package/dist/node/adapters/interfaces.js +0 -0
- package/dist/node/adapters/motion-stub.js +26 -0
- package/dist/node/adapters/resizable-panels-stub.js +45 -0
- package/dist/node/evals/golden-context.js +0 -0
- package/dist/node/evals/golden-harness.js +848 -0
- package/dist/node/examples/pm-workbench.bundle.js +476 -0
- package/dist/node/i18n/catalogs/en.js +71 -0
- package/dist/node/i18n/catalogs/es.js +32 -0
- package/dist/node/i18n/catalogs/fr.js +32 -0
- package/dist/node/i18n/catalogs/index.js +133 -0
- package/dist/node/i18n/index.js +173 -0
- package/dist/node/i18n/keys.js +19 -0
- package/dist/node/i18n/messages.js +143 -0
- package/dist/node/index.js +2466 -0
- package/dist/node/react/BundleProvider.js +47 -0
- package/dist/node/react/BundleRenderer.js +726 -0
- package/dist/node/react/OverlayConflictResolver.js +255 -0
- package/dist/node/react/PatchProposalCard.js +255 -0
- package/dist/node/react/RegionRenderer.js +128 -0
- package/dist/node/react/SlotRenderer.js +118 -0
- package/dist/node/react/WidgetPalette.js +59 -0
- package/dist/node/react/index.js +792 -0
- package/dist/node/runtime/apply-surface-patch.js +322 -0
- package/dist/node/runtime/audit-events.js +137 -0
- package/dist/node/runtime/build-context.js +55 -0
- package/dist/node/runtime/extension-registry.js +58 -0
- package/dist/node/runtime/field-renderer-registry.js +145 -0
- package/dist/node/runtime/index.js +1496 -0
- package/dist/node/runtime/overlay-alignment.js +83 -0
- package/dist/node/runtime/overlay-signer.js +15 -0
- package/dist/node/runtime/override-store.js +52 -0
- package/dist/node/runtime/planner-prompt.js +67 -0
- package/dist/node/runtime/planner-tools.js +77 -0
- package/dist/node/runtime/policy-eval.js +155 -0
- package/dist/node/runtime/preference-adapter.js +67 -0
- package/dist/node/runtime/resolve-bundle.js +767 -0
- package/dist/node/runtime/resolve-preferences.js +59 -0
- package/dist/node/runtime/rollback.js +347 -0
- package/dist/node/runtime/widget-registry.js +36 -0
- package/dist/node/spec/define-module-bundle.js +113 -0
- package/dist/node/spec/index.js +319 -0
- package/dist/node/spec/types.js +0 -0
- package/dist/node/spec/validate-bundle.js +65 -0
- package/dist/node/spec/validate-surface-patch.js +206 -0
- package/dist/node/spec/verification-snapshot-types.js +0 -0
- package/dist/node/telemetry/index.js +20 -0
- package/dist/node/telemetry/surface-metrics.js +20 -0
- package/dist/react/BundleProvider.d.ts +13 -0
- package/dist/react/BundleProvider.js +48 -0
- package/dist/react/BundleRenderer.d.ts +22 -0
- package/dist/react/BundleRenderer.js +727 -0
- package/dist/react/OverlayConflictResolver.d.ts +15 -0
- package/dist/react/OverlayConflictResolver.js +256 -0
- package/dist/react/PatchProposalCard.d.ts +13 -0
- package/dist/react/PatchProposalCard.js +256 -0
- package/dist/react/RegionRenderer.d.ts +13 -0
- package/dist/react/RegionRenderer.js +129 -0
- package/dist/react/SlotRenderer.d.ts +13 -0
- package/dist/react/SlotRenderer.js +119 -0
- package/dist/react/WidgetPalette.d.ts +12 -0
- package/dist/react/WidgetPalette.js +60 -0
- package/dist/react/index.d.ts +7 -0
- package/dist/react/index.js +793 -0
- package/dist/runtime/apply-surface-patch.d.ts +15 -0
- package/dist/runtime/apply-surface-patch.js +323 -0
- package/dist/runtime/apply-surface-patch.test.d.ts +1 -0
- package/dist/runtime/audit-events.d.ts +70 -0
- package/dist/runtime/audit-events.js +138 -0
- package/dist/runtime/audit-events.test.d.ts +1 -0
- package/dist/runtime/build-context.d.ts +9 -0
- package/dist/runtime/build-context.js +56 -0
- package/dist/runtime/extension-registry.d.ts +39 -0
- package/dist/runtime/extension-registry.js +59 -0
- package/dist/runtime/field-renderer-registry.d.ts +23 -0
- package/dist/runtime/field-renderer-registry.js +146 -0
- package/dist/runtime/field-renderer-registry.test.d.ts +1 -0
- package/dist/runtime/index.d.ts +16 -0
- package/dist/runtime/index.js +1497 -0
- package/dist/runtime/overlay-alignment.d.ts +49 -0
- package/dist/runtime/overlay-alignment.js +84 -0
- package/dist/runtime/overlay-alignment.test.d.ts +1 -0
- package/dist/runtime/overlay-signer.d.ts +15 -0
- package/dist/runtime/overlay-signer.js +16 -0
- package/dist/runtime/override-store.d.ts +44 -0
- package/dist/runtime/override-store.js +53 -0
- package/dist/runtime/override-store.test.d.ts +1 -0
- package/dist/runtime/planner-prompt.d.ts +39 -0
- package/dist/runtime/planner-prompt.js +68 -0
- package/dist/runtime/planner-prompt.test.d.ts +1 -0
- package/dist/runtime/planner-tools.d.ts +106 -0
- package/dist/runtime/planner-tools.js +78 -0
- package/dist/runtime/planner-tools.test.d.ts +1 -0
- package/dist/runtime/policy-eval.d.ts +23 -0
- package/dist/runtime/policy-eval.js +156 -0
- package/dist/runtime/preference-adapter.d.ts +6 -0
- package/dist/runtime/preference-adapter.js +68 -0
- package/dist/runtime/resolve-bundle.d.ts +68 -0
- package/dist/runtime/resolve-bundle.js +768 -0
- package/dist/runtime/resolve-bundle.test.d.ts +1 -0
- package/dist/runtime/resolve-preferences.d.ts +9 -0
- package/dist/runtime/resolve-preferences.js +60 -0
- package/dist/runtime/resolve-preferences.test.d.ts +1 -0
- package/dist/runtime/rollback.d.ts +21 -0
- package/dist/runtime/rollback.js +348 -0
- package/dist/runtime/rollback.test.d.ts +1 -0
- package/dist/runtime/widget-registry.d.ts +26 -0
- package/dist/runtime/widget-registry.js +37 -0
- package/dist/runtime/widget-registry.test.d.ts +1 -0
- package/dist/spec/define-module-bundle.d.ts +17 -0
- package/dist/spec/define-module-bundle.js +114 -0
- package/dist/spec/define-module-bundle.test.d.ts +1 -0
- package/dist/spec/index.d.ts +5 -0
- package/dist/spec/index.js +320 -0
- package/dist/spec/types.d.ts +494 -0
- package/dist/spec/types.js +1 -0
- package/dist/spec/validate-bundle.d.ts +23 -0
- package/dist/spec/validate-bundle.js +66 -0
- package/dist/spec/validate-bundle.test.d.ts +1 -0
- package/dist/spec/validate-surface-patch.d.ts +39 -0
- package/dist/spec/validate-surface-patch.js +207 -0
- package/dist/spec/validate-surface-patch.test.d.ts +1 -0
- package/dist/spec/verification-snapshot-types.d.ts +23 -0
- package/dist/spec/verification-snapshot-types.js +1 -0
- package/dist/spec/verification-snapshot.test.d.ts +5 -0
- package/dist/telemetry/index.d.ts +5 -0
- package/dist/telemetry/index.js +21 -0
- package/dist/telemetry/surface-metrics.d.ts +17 -0
- package/dist/telemetry/surface-metrics.js +21 -0
- package/package.json +920 -0
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
// src/i18n/catalogs/en.ts
|
|
3
|
+
import { defineTranslation } from "@contractspec/lib.contracts-spec/translations";
|
|
4
|
+
var enMessages = defineTranslation({
|
|
5
|
+
meta: {
|
|
6
|
+
key: "surface-runtime.messages",
|
|
7
|
+
version: "1.0.0",
|
|
8
|
+
domain: "surface-runtime",
|
|
9
|
+
description: "User-facing strings for surface-runtime UI components",
|
|
10
|
+
owners: ["platform"],
|
|
11
|
+
stability: "experimental"
|
|
12
|
+
},
|
|
13
|
+
locale: "en",
|
|
14
|
+
fallback: "en",
|
|
15
|
+
messages: {
|
|
16
|
+
"overlay.conflicts.title": {
|
|
17
|
+
value: "Overlay conflicts",
|
|
18
|
+
description: "Title for overlay conflict resolution banner"
|
|
19
|
+
},
|
|
20
|
+
"overlay.conflicts.keepScope": {
|
|
21
|
+
value: "Keep {scope}",
|
|
22
|
+
description: "Button to keep overlay from scope A or B"
|
|
23
|
+
},
|
|
24
|
+
"patch.accept": {
|
|
25
|
+
value: "Accept",
|
|
26
|
+
description: "Accept patch proposal button"
|
|
27
|
+
},
|
|
28
|
+
"patch.reject": {
|
|
29
|
+
value: "Reject",
|
|
30
|
+
description: "Reject patch proposal button"
|
|
31
|
+
},
|
|
32
|
+
"patch.addWidget": {
|
|
33
|
+
value: "Add {title} to {slot}",
|
|
34
|
+
description: "Insert node proposal summary"
|
|
35
|
+
},
|
|
36
|
+
"patch.removeItem": {
|
|
37
|
+
value: "Remove item",
|
|
38
|
+
description: "Remove node proposal summary"
|
|
39
|
+
},
|
|
40
|
+
"patch.switchLayout": {
|
|
41
|
+
value: "Switch to {layoutId} layout",
|
|
42
|
+
description: "Set layout proposal summary"
|
|
43
|
+
},
|
|
44
|
+
"patch.showField": {
|
|
45
|
+
value: "Show field {fieldId}",
|
|
46
|
+
description: "Reveal field proposal summary"
|
|
47
|
+
},
|
|
48
|
+
"patch.hideField": {
|
|
49
|
+
value: "Hide field {fieldId}",
|
|
50
|
+
description: "Hide field proposal summary"
|
|
51
|
+
},
|
|
52
|
+
"patch.moveTo": {
|
|
53
|
+
value: "Move to {slot}",
|
|
54
|
+
description: "Move node proposal summary"
|
|
55
|
+
},
|
|
56
|
+
"patch.replaceItem": {
|
|
57
|
+
value: "Replace item",
|
|
58
|
+
description: "Replace node proposal summary"
|
|
59
|
+
},
|
|
60
|
+
"patch.promote": {
|
|
61
|
+
value: "Promote {actionId}",
|
|
62
|
+
description: "Promote action proposal summary"
|
|
63
|
+
},
|
|
64
|
+
"patch.changes": {
|
|
65
|
+
value: "{count} changes",
|
|
66
|
+
description: "Multiple patch ops summary"
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
});
|
|
70
|
+
export {
|
|
71
|
+
enMessages
|
|
72
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const esMessages: import("@contractspec/lib.contracts-spec/translations").TranslationSpec;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
// src/i18n/catalogs/es.ts
|
|
3
|
+
import { defineTranslation } from "@contractspec/lib.contracts-spec/translations";
|
|
4
|
+
var esMessages = defineTranslation({
|
|
5
|
+
meta: {
|
|
6
|
+
key: "surface-runtime.messages",
|
|
7
|
+
version: "1.0.0",
|
|
8
|
+
domain: "surface-runtime",
|
|
9
|
+
description: "User-facing strings for surface-runtime UI components",
|
|
10
|
+
owners: ["platform"],
|
|
11
|
+
stability: "experimental"
|
|
12
|
+
},
|
|
13
|
+
locale: "es",
|
|
14
|
+
fallback: "en",
|
|
15
|
+
messages: {
|
|
16
|
+
"overlay.conflicts.title": { value: "Conflictos de superposici\xF3n" },
|
|
17
|
+
"overlay.conflicts.keepScope": { value: "Mantener {scope}" },
|
|
18
|
+
"patch.accept": { value: "Aceptar" },
|
|
19
|
+
"patch.reject": { value: "Rechazar" },
|
|
20
|
+
"patch.addWidget": { value: "A\xF1adir {title} a {slot}" },
|
|
21
|
+
"patch.removeItem": { value: "Eliminar elemento" },
|
|
22
|
+
"patch.switchLayout": { value: "Cambiar a disposici\xF3n {layoutId}" },
|
|
23
|
+
"patch.showField": { value: "Mostrar campo {fieldId}" },
|
|
24
|
+
"patch.hideField": { value: "Ocultar campo {fieldId}" },
|
|
25
|
+
"patch.moveTo": { value: "Mover a {slot}" },
|
|
26
|
+
"patch.replaceItem": { value: "Reemplazar elemento" },
|
|
27
|
+
"patch.promote": { value: "Promover {actionId}" },
|
|
28
|
+
"patch.changes": { value: "{count} cambios" }
|
|
29
|
+
}
|
|
30
|
+
});
|
|
31
|
+
export {
|
|
32
|
+
esMessages
|
|
33
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const frMessages: import("@contractspec/lib.contracts-spec/translations").TranslationSpec;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
// src/i18n/catalogs/fr.ts
|
|
3
|
+
import { defineTranslation } from "@contractspec/lib.contracts-spec/translations";
|
|
4
|
+
var frMessages = defineTranslation({
|
|
5
|
+
meta: {
|
|
6
|
+
key: "surface-runtime.messages",
|
|
7
|
+
version: "1.0.0",
|
|
8
|
+
domain: "surface-runtime",
|
|
9
|
+
description: "User-facing strings for surface-runtime UI components",
|
|
10
|
+
owners: ["platform"],
|
|
11
|
+
stability: "experimental"
|
|
12
|
+
},
|
|
13
|
+
locale: "fr",
|
|
14
|
+
fallback: "en",
|
|
15
|
+
messages: {
|
|
16
|
+
"overlay.conflicts.title": { value: "Conflits de superposition" },
|
|
17
|
+
"overlay.conflicts.keepScope": { value: "Conserver {scope}" },
|
|
18
|
+
"patch.accept": { value: "Accepter" },
|
|
19
|
+
"patch.reject": { value: "Rejeter" },
|
|
20
|
+
"patch.addWidget": { value: "Ajouter {title} \xE0 {slot}" },
|
|
21
|
+
"patch.removeItem": { value: "Supprimer l'\xE9l\xE9ment" },
|
|
22
|
+
"patch.switchLayout": { value: "Passer \xE0 la disposition {layoutId}" },
|
|
23
|
+
"patch.showField": { value: "Afficher le champ {fieldId}" },
|
|
24
|
+
"patch.hideField": { value: "Masquer le champ {fieldId}" },
|
|
25
|
+
"patch.moveTo": { value: "D\xE9placer vers {slot}" },
|
|
26
|
+
"patch.replaceItem": { value: "Remplacer l'\xE9l\xE9ment" },
|
|
27
|
+
"patch.promote": { value: "Promouvoir {actionId}" },
|
|
28
|
+
"patch.changes": { value: "{count} modifications" }
|
|
29
|
+
}
|
|
30
|
+
});
|
|
31
|
+
export {
|
|
32
|
+
frMessages
|
|
33
|
+
};
|
|
@@ -0,0 +1,134 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
// src/i18n/catalogs/en.ts
|
|
3
|
+
import { defineTranslation } from "@contractspec/lib.contracts-spec/translations";
|
|
4
|
+
var enMessages = defineTranslation({
|
|
5
|
+
meta: {
|
|
6
|
+
key: "surface-runtime.messages",
|
|
7
|
+
version: "1.0.0",
|
|
8
|
+
domain: "surface-runtime",
|
|
9
|
+
description: "User-facing strings for surface-runtime UI components",
|
|
10
|
+
owners: ["platform"],
|
|
11
|
+
stability: "experimental"
|
|
12
|
+
},
|
|
13
|
+
locale: "en",
|
|
14
|
+
fallback: "en",
|
|
15
|
+
messages: {
|
|
16
|
+
"overlay.conflicts.title": {
|
|
17
|
+
value: "Overlay conflicts",
|
|
18
|
+
description: "Title for overlay conflict resolution banner"
|
|
19
|
+
},
|
|
20
|
+
"overlay.conflicts.keepScope": {
|
|
21
|
+
value: "Keep {scope}",
|
|
22
|
+
description: "Button to keep overlay from scope A or B"
|
|
23
|
+
},
|
|
24
|
+
"patch.accept": {
|
|
25
|
+
value: "Accept",
|
|
26
|
+
description: "Accept patch proposal button"
|
|
27
|
+
},
|
|
28
|
+
"patch.reject": {
|
|
29
|
+
value: "Reject",
|
|
30
|
+
description: "Reject patch proposal button"
|
|
31
|
+
},
|
|
32
|
+
"patch.addWidget": {
|
|
33
|
+
value: "Add {title} to {slot}",
|
|
34
|
+
description: "Insert node proposal summary"
|
|
35
|
+
},
|
|
36
|
+
"patch.removeItem": {
|
|
37
|
+
value: "Remove item",
|
|
38
|
+
description: "Remove node proposal summary"
|
|
39
|
+
},
|
|
40
|
+
"patch.switchLayout": {
|
|
41
|
+
value: "Switch to {layoutId} layout",
|
|
42
|
+
description: "Set layout proposal summary"
|
|
43
|
+
},
|
|
44
|
+
"patch.showField": {
|
|
45
|
+
value: "Show field {fieldId}",
|
|
46
|
+
description: "Reveal field proposal summary"
|
|
47
|
+
},
|
|
48
|
+
"patch.hideField": {
|
|
49
|
+
value: "Hide field {fieldId}",
|
|
50
|
+
description: "Hide field proposal summary"
|
|
51
|
+
},
|
|
52
|
+
"patch.moveTo": {
|
|
53
|
+
value: "Move to {slot}",
|
|
54
|
+
description: "Move node proposal summary"
|
|
55
|
+
},
|
|
56
|
+
"patch.replaceItem": {
|
|
57
|
+
value: "Replace item",
|
|
58
|
+
description: "Replace node proposal summary"
|
|
59
|
+
},
|
|
60
|
+
"patch.promote": {
|
|
61
|
+
value: "Promote {actionId}",
|
|
62
|
+
description: "Promote action proposal summary"
|
|
63
|
+
},
|
|
64
|
+
"patch.changes": {
|
|
65
|
+
value: "{count} changes",
|
|
66
|
+
description: "Multiple patch ops summary"
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
});
|
|
70
|
+
|
|
71
|
+
// src/i18n/catalogs/es.ts
|
|
72
|
+
import { defineTranslation as defineTranslation2 } from "@contractspec/lib.contracts-spec/translations";
|
|
73
|
+
var esMessages = defineTranslation2({
|
|
74
|
+
meta: {
|
|
75
|
+
key: "surface-runtime.messages",
|
|
76
|
+
version: "1.0.0",
|
|
77
|
+
domain: "surface-runtime",
|
|
78
|
+
description: "User-facing strings for surface-runtime UI components",
|
|
79
|
+
owners: ["platform"],
|
|
80
|
+
stability: "experimental"
|
|
81
|
+
},
|
|
82
|
+
locale: "es",
|
|
83
|
+
fallback: "en",
|
|
84
|
+
messages: {
|
|
85
|
+
"overlay.conflicts.title": { value: "Conflictos de superposici\xF3n" },
|
|
86
|
+
"overlay.conflicts.keepScope": { value: "Mantener {scope}" },
|
|
87
|
+
"patch.accept": { value: "Aceptar" },
|
|
88
|
+
"patch.reject": { value: "Rechazar" },
|
|
89
|
+
"patch.addWidget": { value: "A\xF1adir {title} a {slot}" },
|
|
90
|
+
"patch.removeItem": { value: "Eliminar elemento" },
|
|
91
|
+
"patch.switchLayout": { value: "Cambiar a disposici\xF3n {layoutId}" },
|
|
92
|
+
"patch.showField": { value: "Mostrar campo {fieldId}" },
|
|
93
|
+
"patch.hideField": { value: "Ocultar campo {fieldId}" },
|
|
94
|
+
"patch.moveTo": { value: "Mover a {slot}" },
|
|
95
|
+
"patch.replaceItem": { value: "Reemplazar elemento" },
|
|
96
|
+
"patch.promote": { value: "Promover {actionId}" },
|
|
97
|
+
"patch.changes": { value: "{count} cambios" }
|
|
98
|
+
}
|
|
99
|
+
});
|
|
100
|
+
|
|
101
|
+
// src/i18n/catalogs/fr.ts
|
|
102
|
+
import { defineTranslation as defineTranslation3 } from "@contractspec/lib.contracts-spec/translations";
|
|
103
|
+
var frMessages = defineTranslation3({
|
|
104
|
+
meta: {
|
|
105
|
+
key: "surface-runtime.messages",
|
|
106
|
+
version: "1.0.0",
|
|
107
|
+
domain: "surface-runtime",
|
|
108
|
+
description: "User-facing strings for surface-runtime UI components",
|
|
109
|
+
owners: ["platform"],
|
|
110
|
+
stability: "experimental"
|
|
111
|
+
},
|
|
112
|
+
locale: "fr",
|
|
113
|
+
fallback: "en",
|
|
114
|
+
messages: {
|
|
115
|
+
"overlay.conflicts.title": { value: "Conflits de superposition" },
|
|
116
|
+
"overlay.conflicts.keepScope": { value: "Conserver {scope}" },
|
|
117
|
+
"patch.accept": { value: "Accepter" },
|
|
118
|
+
"patch.reject": { value: "Rejeter" },
|
|
119
|
+
"patch.addWidget": { value: "Ajouter {title} \xE0 {slot}" },
|
|
120
|
+
"patch.removeItem": { value: "Supprimer l'\xE9l\xE9ment" },
|
|
121
|
+
"patch.switchLayout": { value: "Passer \xE0 la disposition {layoutId}" },
|
|
122
|
+
"patch.showField": { value: "Afficher le champ {fieldId}" },
|
|
123
|
+
"patch.hideField": { value: "Masquer le champ {fieldId}" },
|
|
124
|
+
"patch.moveTo": { value: "D\xE9placer vers {slot}" },
|
|
125
|
+
"patch.replaceItem": { value: "Remplacer l'\xE9l\xE9ment" },
|
|
126
|
+
"patch.promote": { value: "Promouvoir {actionId}" },
|
|
127
|
+
"patch.changes": { value: "{count} modifications" }
|
|
128
|
+
}
|
|
129
|
+
});
|
|
130
|
+
export {
|
|
131
|
+
frMessages,
|
|
132
|
+
esMessages,
|
|
133
|
+
enMessages
|
|
134
|
+
};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export { createSurfaceI18n, getDefaultSurfaceI18n } from './messages';
|
|
2
|
+
export type { SurfaceI18n } from './messages';
|
|
3
|
+
export { SURFACE_KEYS } from './keys';
|
|
4
|
+
export type { SurfaceMessageKey } from './keys';
|
|
5
|
+
export { resolveLocale, isSupportedLocale, DEFAULT_LOCALE, SUPPORTED_LOCALES, } from '@contractspec/lib.contracts-spec/translations';
|
|
@@ -0,0 +1,174 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
// src/i18n/catalogs/en.ts
|
|
3
|
+
import { defineTranslation } from "@contractspec/lib.contracts-spec/translations";
|
|
4
|
+
var enMessages = defineTranslation({
|
|
5
|
+
meta: {
|
|
6
|
+
key: "surface-runtime.messages",
|
|
7
|
+
version: "1.0.0",
|
|
8
|
+
domain: "surface-runtime",
|
|
9
|
+
description: "User-facing strings for surface-runtime UI components",
|
|
10
|
+
owners: ["platform"],
|
|
11
|
+
stability: "experimental"
|
|
12
|
+
},
|
|
13
|
+
locale: "en",
|
|
14
|
+
fallback: "en",
|
|
15
|
+
messages: {
|
|
16
|
+
"overlay.conflicts.title": {
|
|
17
|
+
value: "Overlay conflicts",
|
|
18
|
+
description: "Title for overlay conflict resolution banner"
|
|
19
|
+
},
|
|
20
|
+
"overlay.conflicts.keepScope": {
|
|
21
|
+
value: "Keep {scope}",
|
|
22
|
+
description: "Button to keep overlay from scope A or B"
|
|
23
|
+
},
|
|
24
|
+
"patch.accept": {
|
|
25
|
+
value: "Accept",
|
|
26
|
+
description: "Accept patch proposal button"
|
|
27
|
+
},
|
|
28
|
+
"patch.reject": {
|
|
29
|
+
value: "Reject",
|
|
30
|
+
description: "Reject patch proposal button"
|
|
31
|
+
},
|
|
32
|
+
"patch.addWidget": {
|
|
33
|
+
value: "Add {title} to {slot}",
|
|
34
|
+
description: "Insert node proposal summary"
|
|
35
|
+
},
|
|
36
|
+
"patch.removeItem": {
|
|
37
|
+
value: "Remove item",
|
|
38
|
+
description: "Remove node proposal summary"
|
|
39
|
+
},
|
|
40
|
+
"patch.switchLayout": {
|
|
41
|
+
value: "Switch to {layoutId} layout",
|
|
42
|
+
description: "Set layout proposal summary"
|
|
43
|
+
},
|
|
44
|
+
"patch.showField": {
|
|
45
|
+
value: "Show field {fieldId}",
|
|
46
|
+
description: "Reveal field proposal summary"
|
|
47
|
+
},
|
|
48
|
+
"patch.hideField": {
|
|
49
|
+
value: "Hide field {fieldId}",
|
|
50
|
+
description: "Hide field proposal summary"
|
|
51
|
+
},
|
|
52
|
+
"patch.moveTo": {
|
|
53
|
+
value: "Move to {slot}",
|
|
54
|
+
description: "Move node proposal summary"
|
|
55
|
+
},
|
|
56
|
+
"patch.replaceItem": {
|
|
57
|
+
value: "Replace item",
|
|
58
|
+
description: "Replace node proposal summary"
|
|
59
|
+
},
|
|
60
|
+
"patch.promote": {
|
|
61
|
+
value: "Promote {actionId}",
|
|
62
|
+
description: "Promote action proposal summary"
|
|
63
|
+
},
|
|
64
|
+
"patch.changes": {
|
|
65
|
+
value: "{count} changes",
|
|
66
|
+
description: "Multiple patch ops summary"
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
});
|
|
70
|
+
|
|
71
|
+
// src/i18n/catalogs/es.ts
|
|
72
|
+
import { defineTranslation as defineTranslation2 } from "@contractspec/lib.contracts-spec/translations";
|
|
73
|
+
var esMessages = defineTranslation2({
|
|
74
|
+
meta: {
|
|
75
|
+
key: "surface-runtime.messages",
|
|
76
|
+
version: "1.0.0",
|
|
77
|
+
domain: "surface-runtime",
|
|
78
|
+
description: "User-facing strings for surface-runtime UI components",
|
|
79
|
+
owners: ["platform"],
|
|
80
|
+
stability: "experimental"
|
|
81
|
+
},
|
|
82
|
+
locale: "es",
|
|
83
|
+
fallback: "en",
|
|
84
|
+
messages: {
|
|
85
|
+
"overlay.conflicts.title": { value: "Conflictos de superposici\xF3n" },
|
|
86
|
+
"overlay.conflicts.keepScope": { value: "Mantener {scope}" },
|
|
87
|
+
"patch.accept": { value: "Aceptar" },
|
|
88
|
+
"patch.reject": { value: "Rechazar" },
|
|
89
|
+
"patch.addWidget": { value: "A\xF1adir {title} a {slot}" },
|
|
90
|
+
"patch.removeItem": { value: "Eliminar elemento" },
|
|
91
|
+
"patch.switchLayout": { value: "Cambiar a disposici\xF3n {layoutId}" },
|
|
92
|
+
"patch.showField": { value: "Mostrar campo {fieldId}" },
|
|
93
|
+
"patch.hideField": { value: "Ocultar campo {fieldId}" },
|
|
94
|
+
"patch.moveTo": { value: "Mover a {slot}" },
|
|
95
|
+
"patch.replaceItem": { value: "Reemplazar elemento" },
|
|
96
|
+
"patch.promote": { value: "Promover {actionId}" },
|
|
97
|
+
"patch.changes": { value: "{count} cambios" }
|
|
98
|
+
}
|
|
99
|
+
});
|
|
100
|
+
|
|
101
|
+
// src/i18n/catalogs/fr.ts
|
|
102
|
+
import { defineTranslation as defineTranslation3 } from "@contractspec/lib.contracts-spec/translations";
|
|
103
|
+
var frMessages = defineTranslation3({
|
|
104
|
+
meta: {
|
|
105
|
+
key: "surface-runtime.messages",
|
|
106
|
+
version: "1.0.0",
|
|
107
|
+
domain: "surface-runtime",
|
|
108
|
+
description: "User-facing strings for surface-runtime UI components",
|
|
109
|
+
owners: ["platform"],
|
|
110
|
+
stability: "experimental"
|
|
111
|
+
},
|
|
112
|
+
locale: "fr",
|
|
113
|
+
fallback: "en",
|
|
114
|
+
messages: {
|
|
115
|
+
"overlay.conflicts.title": { value: "Conflits de superposition" },
|
|
116
|
+
"overlay.conflicts.keepScope": { value: "Conserver {scope}" },
|
|
117
|
+
"patch.accept": { value: "Accepter" },
|
|
118
|
+
"patch.reject": { value: "Rejeter" },
|
|
119
|
+
"patch.addWidget": { value: "Ajouter {title} \xE0 {slot}" },
|
|
120
|
+
"patch.removeItem": { value: "Supprimer l'\xE9l\xE9ment" },
|
|
121
|
+
"patch.switchLayout": { value: "Passer \xE0 la disposition {layoutId}" },
|
|
122
|
+
"patch.showField": { value: "Afficher le champ {fieldId}" },
|
|
123
|
+
"patch.hideField": { value: "Masquer le champ {fieldId}" },
|
|
124
|
+
"patch.moveTo": { value: "D\xE9placer vers {slot}" },
|
|
125
|
+
"patch.replaceItem": { value: "Remplacer l'\xE9l\xE9ment" },
|
|
126
|
+
"patch.promote": { value: "Promouvoir {actionId}" },
|
|
127
|
+
"patch.changes": { value: "{count} modifications" }
|
|
128
|
+
}
|
|
129
|
+
});
|
|
130
|
+
|
|
131
|
+
// src/i18n/messages.ts
|
|
132
|
+
import {
|
|
133
|
+
createI18nFactory
|
|
134
|
+
} from "@contractspec/lib.contracts-spec/translations";
|
|
135
|
+
var factory = createI18nFactory({
|
|
136
|
+
specKey: "surface-runtime.messages",
|
|
137
|
+
catalogs: [enMessages, frMessages, esMessages]
|
|
138
|
+
});
|
|
139
|
+
var createSurfaceI18n = factory.create;
|
|
140
|
+
var getDefaultSurfaceI18n = factory.getDefault;
|
|
141
|
+
|
|
142
|
+
// src/i18n/keys.ts
|
|
143
|
+
var SURFACE_KEYS = {
|
|
144
|
+
"overlay.conflicts.title": "overlay.conflicts.title",
|
|
145
|
+
"overlay.conflicts.keepScope": "overlay.conflicts.keepScope",
|
|
146
|
+
"patch.accept": "patch.accept",
|
|
147
|
+
"patch.reject": "patch.reject",
|
|
148
|
+
"patch.addWidget": "patch.addWidget",
|
|
149
|
+
"patch.removeItem": "patch.removeItem",
|
|
150
|
+
"patch.switchLayout": "patch.switchLayout",
|
|
151
|
+
"patch.showField": "patch.showField",
|
|
152
|
+
"patch.hideField": "patch.hideField",
|
|
153
|
+
"patch.moveTo": "patch.moveTo",
|
|
154
|
+
"patch.replaceItem": "patch.replaceItem",
|
|
155
|
+
"patch.promote": "patch.promote",
|
|
156
|
+
"patch.changes": "patch.changes"
|
|
157
|
+
};
|
|
158
|
+
|
|
159
|
+
// src/i18n/index.ts
|
|
160
|
+
import {
|
|
161
|
+
resolveLocale,
|
|
162
|
+
isSupportedLocale,
|
|
163
|
+
DEFAULT_LOCALE,
|
|
164
|
+
SUPPORTED_LOCALES
|
|
165
|
+
} from "@contractspec/lib.contracts-spec/translations";
|
|
166
|
+
export {
|
|
167
|
+
resolveLocale,
|
|
168
|
+
isSupportedLocale,
|
|
169
|
+
getDefaultSurfaceI18n,
|
|
170
|
+
createSurfaceI18n,
|
|
171
|
+
SURFACE_KEYS,
|
|
172
|
+
SUPPORTED_LOCALES,
|
|
173
|
+
DEFAULT_LOCALE
|
|
174
|
+
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Typed message keys for surface-runtime i18n.
|
|
3
|
+
* User-facing strings in OverlayConflictResolver, PatchProposalCard, etc.
|
|
4
|
+
*/
|
|
5
|
+
export declare const SURFACE_KEYS: {
|
|
6
|
+
readonly 'overlay.conflicts.title': "overlay.conflicts.title";
|
|
7
|
+
readonly 'overlay.conflicts.keepScope': "overlay.conflicts.keepScope";
|
|
8
|
+
readonly 'patch.accept': "patch.accept";
|
|
9
|
+
readonly 'patch.reject': "patch.reject";
|
|
10
|
+
readonly 'patch.addWidget': "patch.addWidget";
|
|
11
|
+
readonly 'patch.removeItem': "patch.removeItem";
|
|
12
|
+
readonly 'patch.switchLayout': "patch.switchLayout";
|
|
13
|
+
readonly 'patch.showField': "patch.showField";
|
|
14
|
+
readonly 'patch.hideField': "patch.hideField";
|
|
15
|
+
readonly 'patch.moveTo': "patch.moveTo";
|
|
16
|
+
readonly 'patch.replaceItem': "patch.replaceItem";
|
|
17
|
+
readonly 'patch.promote': "patch.promote";
|
|
18
|
+
readonly 'patch.changes': "patch.changes";
|
|
19
|
+
};
|
|
20
|
+
export type SurfaceMessageKey = (typeof SURFACE_KEYS)[keyof typeof SURFACE_KEYS];
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
// src/i18n/keys.ts
|
|
3
|
+
var SURFACE_KEYS = {
|
|
4
|
+
"overlay.conflicts.title": "overlay.conflicts.title",
|
|
5
|
+
"overlay.conflicts.keepScope": "overlay.conflicts.keepScope",
|
|
6
|
+
"patch.accept": "patch.accept",
|
|
7
|
+
"patch.reject": "patch.reject",
|
|
8
|
+
"patch.addWidget": "patch.addWidget",
|
|
9
|
+
"patch.removeItem": "patch.removeItem",
|
|
10
|
+
"patch.switchLayout": "patch.switchLayout",
|
|
11
|
+
"patch.showField": "patch.showField",
|
|
12
|
+
"patch.hideField": "patch.hideField",
|
|
13
|
+
"patch.moveTo": "patch.moveTo",
|
|
14
|
+
"patch.replaceItem": "patch.replaceItem",
|
|
15
|
+
"patch.promote": "patch.promote",
|
|
16
|
+
"patch.changes": "patch.changes"
|
|
17
|
+
};
|
|
18
|
+
export {
|
|
19
|
+
SURFACE_KEYS
|
|
20
|
+
};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { type I18nInstance } from '@contractspec/lib.contracts-spec/translations';
|
|
2
|
+
import type { SurfaceMessageKey } from './keys';
|
|
3
|
+
export type SurfaceI18n = I18nInstance<SurfaceMessageKey>;
|
|
4
|
+
export declare const createSurfaceI18n: (optionsLocale?: string, runtimeLocale?: string) => I18nInstance<SurfaceMessageKey>;
|
|
5
|
+
export declare const getDefaultSurfaceI18n: () => I18nInstance<SurfaceMessageKey>;
|
|
@@ -0,0 +1,144 @@
|
|
|
1
|
+
// @bun
|
|
2
|
+
// src/i18n/catalogs/en.ts
|
|
3
|
+
import { defineTranslation } from "@contractspec/lib.contracts-spec/translations";
|
|
4
|
+
var enMessages = defineTranslation({
|
|
5
|
+
meta: {
|
|
6
|
+
key: "surface-runtime.messages",
|
|
7
|
+
version: "1.0.0",
|
|
8
|
+
domain: "surface-runtime",
|
|
9
|
+
description: "User-facing strings for surface-runtime UI components",
|
|
10
|
+
owners: ["platform"],
|
|
11
|
+
stability: "experimental"
|
|
12
|
+
},
|
|
13
|
+
locale: "en",
|
|
14
|
+
fallback: "en",
|
|
15
|
+
messages: {
|
|
16
|
+
"overlay.conflicts.title": {
|
|
17
|
+
value: "Overlay conflicts",
|
|
18
|
+
description: "Title for overlay conflict resolution banner"
|
|
19
|
+
},
|
|
20
|
+
"overlay.conflicts.keepScope": {
|
|
21
|
+
value: "Keep {scope}",
|
|
22
|
+
description: "Button to keep overlay from scope A or B"
|
|
23
|
+
},
|
|
24
|
+
"patch.accept": {
|
|
25
|
+
value: "Accept",
|
|
26
|
+
description: "Accept patch proposal button"
|
|
27
|
+
},
|
|
28
|
+
"patch.reject": {
|
|
29
|
+
value: "Reject",
|
|
30
|
+
description: "Reject patch proposal button"
|
|
31
|
+
},
|
|
32
|
+
"patch.addWidget": {
|
|
33
|
+
value: "Add {title} to {slot}",
|
|
34
|
+
description: "Insert node proposal summary"
|
|
35
|
+
},
|
|
36
|
+
"patch.removeItem": {
|
|
37
|
+
value: "Remove item",
|
|
38
|
+
description: "Remove node proposal summary"
|
|
39
|
+
},
|
|
40
|
+
"patch.switchLayout": {
|
|
41
|
+
value: "Switch to {layoutId} layout",
|
|
42
|
+
description: "Set layout proposal summary"
|
|
43
|
+
},
|
|
44
|
+
"patch.showField": {
|
|
45
|
+
value: "Show field {fieldId}",
|
|
46
|
+
description: "Reveal field proposal summary"
|
|
47
|
+
},
|
|
48
|
+
"patch.hideField": {
|
|
49
|
+
value: "Hide field {fieldId}",
|
|
50
|
+
description: "Hide field proposal summary"
|
|
51
|
+
},
|
|
52
|
+
"patch.moveTo": {
|
|
53
|
+
value: "Move to {slot}",
|
|
54
|
+
description: "Move node proposal summary"
|
|
55
|
+
},
|
|
56
|
+
"patch.replaceItem": {
|
|
57
|
+
value: "Replace item",
|
|
58
|
+
description: "Replace node proposal summary"
|
|
59
|
+
},
|
|
60
|
+
"patch.promote": {
|
|
61
|
+
value: "Promote {actionId}",
|
|
62
|
+
description: "Promote action proposal summary"
|
|
63
|
+
},
|
|
64
|
+
"patch.changes": {
|
|
65
|
+
value: "{count} changes",
|
|
66
|
+
description: "Multiple patch ops summary"
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
});
|
|
70
|
+
|
|
71
|
+
// src/i18n/catalogs/es.ts
|
|
72
|
+
import { defineTranslation as defineTranslation2 } from "@contractspec/lib.contracts-spec/translations";
|
|
73
|
+
var esMessages = defineTranslation2({
|
|
74
|
+
meta: {
|
|
75
|
+
key: "surface-runtime.messages",
|
|
76
|
+
version: "1.0.0",
|
|
77
|
+
domain: "surface-runtime",
|
|
78
|
+
description: "User-facing strings for surface-runtime UI components",
|
|
79
|
+
owners: ["platform"],
|
|
80
|
+
stability: "experimental"
|
|
81
|
+
},
|
|
82
|
+
locale: "es",
|
|
83
|
+
fallback: "en",
|
|
84
|
+
messages: {
|
|
85
|
+
"overlay.conflicts.title": { value: "Conflictos de superposici\xF3n" },
|
|
86
|
+
"overlay.conflicts.keepScope": { value: "Mantener {scope}" },
|
|
87
|
+
"patch.accept": { value: "Aceptar" },
|
|
88
|
+
"patch.reject": { value: "Rechazar" },
|
|
89
|
+
"patch.addWidget": { value: "A\xF1adir {title} a {slot}" },
|
|
90
|
+
"patch.removeItem": { value: "Eliminar elemento" },
|
|
91
|
+
"patch.switchLayout": { value: "Cambiar a disposici\xF3n {layoutId}" },
|
|
92
|
+
"patch.showField": { value: "Mostrar campo {fieldId}" },
|
|
93
|
+
"patch.hideField": { value: "Ocultar campo {fieldId}" },
|
|
94
|
+
"patch.moveTo": { value: "Mover a {slot}" },
|
|
95
|
+
"patch.replaceItem": { value: "Reemplazar elemento" },
|
|
96
|
+
"patch.promote": { value: "Promover {actionId}" },
|
|
97
|
+
"patch.changes": { value: "{count} cambios" }
|
|
98
|
+
}
|
|
99
|
+
});
|
|
100
|
+
|
|
101
|
+
// src/i18n/catalogs/fr.ts
|
|
102
|
+
import { defineTranslation as defineTranslation3 } from "@contractspec/lib.contracts-spec/translations";
|
|
103
|
+
var frMessages = defineTranslation3({
|
|
104
|
+
meta: {
|
|
105
|
+
key: "surface-runtime.messages",
|
|
106
|
+
version: "1.0.0",
|
|
107
|
+
domain: "surface-runtime",
|
|
108
|
+
description: "User-facing strings for surface-runtime UI components",
|
|
109
|
+
owners: ["platform"],
|
|
110
|
+
stability: "experimental"
|
|
111
|
+
},
|
|
112
|
+
locale: "fr",
|
|
113
|
+
fallback: "en",
|
|
114
|
+
messages: {
|
|
115
|
+
"overlay.conflicts.title": { value: "Conflits de superposition" },
|
|
116
|
+
"overlay.conflicts.keepScope": { value: "Conserver {scope}" },
|
|
117
|
+
"patch.accept": { value: "Accepter" },
|
|
118
|
+
"patch.reject": { value: "Rejeter" },
|
|
119
|
+
"patch.addWidget": { value: "Ajouter {title} \xE0 {slot}" },
|
|
120
|
+
"patch.removeItem": { value: "Supprimer l'\xE9l\xE9ment" },
|
|
121
|
+
"patch.switchLayout": { value: "Passer \xE0 la disposition {layoutId}" },
|
|
122
|
+
"patch.showField": { value: "Afficher le champ {fieldId}" },
|
|
123
|
+
"patch.hideField": { value: "Masquer le champ {fieldId}" },
|
|
124
|
+
"patch.moveTo": { value: "D\xE9placer vers {slot}" },
|
|
125
|
+
"patch.replaceItem": { value: "Remplacer l'\xE9l\xE9ment" },
|
|
126
|
+
"patch.promote": { value: "Promouvoir {actionId}" },
|
|
127
|
+
"patch.changes": { value: "{count} modifications" }
|
|
128
|
+
}
|
|
129
|
+
});
|
|
130
|
+
|
|
131
|
+
// src/i18n/messages.ts
|
|
132
|
+
import {
|
|
133
|
+
createI18nFactory
|
|
134
|
+
} from "@contractspec/lib.contracts-spec/translations";
|
|
135
|
+
var factory = createI18nFactory({
|
|
136
|
+
specKey: "surface-runtime.messages",
|
|
137
|
+
catalogs: [enMessages, frMessages, esMessages]
|
|
138
|
+
});
|
|
139
|
+
var createSurfaceI18n = factory.create;
|
|
140
|
+
var getDefaultSurfaceI18n = factory.getDefault;
|
|
141
|
+
export {
|
|
142
|
+
getDefaultSurfaceI18n,
|
|
143
|
+
createSurfaceI18n
|
|
144
|
+
};
|
package/dist/index.d.ts
ADDED