@manifest-editor/translation 2.2.1-next.0.eefc2e3 → 2.2.1
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 +49 -0
- package/package.json +4 -4
package/README.md
ADDED
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
<p align="center">
|
|
2
|
+
<a href="https://github.com/digirati-co-uk/iiif-manifest-editor"><img src="https://raw.githubusercontent.com/digirati-co-uk/iiif-manifest-editor/main/apps/docs/content/img/logo.svg" width="360" alt="Manifest Editor"></a>
|
|
3
|
+
</p>
|
|
4
|
+
<p align="center">
|
|
5
|
+
<a href="https://www.npmjs.com/package/@manifest-editor/translation"><img src="https://img.shields.io/npm/v/%40manifest-editor%2Ftranslation" alt="npm version"></a>
|
|
6
|
+
<a href="https://github.com/digirati-co-uk/iiif-manifest-editor/actions/workflows/build-test.yml"><img src="https://img.shields.io/github/actions/workflow/status/digirati-co-uk/iiif-manifest-editor/build-test.yml?branch=main&label=build" alt="Build status"></a>
|
|
7
|
+
<a href="https://manifest-editor-docs.netlify.app/"><img src="https://img.shields.io/badge/docs-Manifest_Editor-blue" alt="Documentation"></a>
|
|
8
|
+
</p>
|
|
9
|
+
|
|
10
|
+
# @manifest-editor/translation
|
|
11
|
+
|
|
12
|
+
## Getting started with Manifest Editor
|
|
13
|
+
|
|
14
|
+
For the complete editor, start with [`manifest-editor`](https://www.npmjs.com/package/manifest-editor) and its [installation and integration guide](https://github.com/digirati-co-uk/iiif-manifest-editor/tree/main/packages/manifest-editor#readme). It combines the editor UI, presets, creators, and editing APIs. This package is one part of that workspace.
|
|
15
|
+
|
|
16
|
+
## About
|
|
17
|
+
|
|
18
|
+
Translate IIIF textual content and manage language tags with background tasks and a translations panel.
|
|
19
|
+
|
|
20
|
+
## Quick start
|
|
21
|
+
|
|
22
|
+
```sh
|
|
23
|
+
npm install manifest-editor @manifest-editor/translation react@19 react-dom@19
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
```tsx
|
|
27
|
+
import { ManifestEditor } from "manifest-editor";
|
|
28
|
+
import * as plugin from "@manifest-editor/translation";
|
|
29
|
+
import "manifest-editor/index.css";
|
|
30
|
+
|
|
31
|
+
export function Editor() {
|
|
32
|
+
return (
|
|
33
|
+
<ManifestEditor
|
|
34
|
+
resource="https://wellcomelibrary.org/iiif/b18035723/manifest"
|
|
35
|
+
plugins={[plugin]}
|
|
36
|
+
enabledPlugins={["@manifest-editor/translation"]}
|
|
37
|
+
/>
|
|
38
|
+
);
|
|
39
|
+
}
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
The local M2M100 runtime attempts WebGPU first and falls back to WASM in Auto mode. Choose source/target languages in the action or plugin settings; configure `workerUrl` when your bundler needs an explicit worker asset URL. Import the module namespace (`import * as plugin`) when registering it: the default export alone contains only metadata.
|
|
43
|
+
|
|
44
|
+
## API overview
|
|
45
|
+
|
|
46
|
+
- Default export: plugin metadata (ID, label, supported apps/resources, and default enabled state).
|
|
47
|
+
- `settings`, `leftPanels`, `backgroundActions`, collection/language/HTML/writeback helpers; `/lazy` and `/translation-worker` entry points.
|
|
48
|
+
|
|
49
|
+
See the [source exports](https://github.com/digirati-co-uk/iiif-manifest-editor/tree/main/plugins/translation/src) for the complete API and TypeScript definitions.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@manifest-editor/translation",
|
|
3
|
-
"version": "2.2.1
|
|
3
|
+
"version": "2.2.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"bugs": "https://github.com/digirati-co-uk/iiif-manifest-editor/issues",
|
|
6
6
|
"repository": {
|
|
@@ -50,8 +50,8 @@
|
|
|
50
50
|
"@iiif/helpers": "4.0.0",
|
|
51
51
|
"@iiif/parser": "4.0.1",
|
|
52
52
|
"@iiif/presentation-3": "^2.2.3",
|
|
53
|
-
"@manifest-editor/components": "2.2.1
|
|
54
|
-
"@manifest-editor/shell": "2.2.1
|
|
53
|
+
"@manifest-editor/components": "2.2.1",
|
|
54
|
+
"@manifest-editor/shell": "2.2.1",
|
|
55
55
|
"react": "19.2.8",
|
|
56
56
|
"react-iiif-vault": "4.0.0"
|
|
57
57
|
},
|
|
@@ -63,5 +63,5 @@
|
|
|
63
63
|
"publishConfig": {
|
|
64
64
|
"access": "public"
|
|
65
65
|
},
|
|
66
|
-
"gitHead": "
|
|
66
|
+
"gitHead": "903673e7c35feed673fc100cb0efe34733057c91"
|
|
67
67
|
}
|