@gramps-connect/story 0.6.0 → 0.7.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 +7 -0
- package/dist/editor.js +691 -99
- package/dist/editor.js.map +4 -4
- package/dist/types/editor/StoryEditor.d.ts +1 -1
- package/dist/types/editor/index.d.ts +2 -2
- package/dist/types/editor/mapEditorStrings.d.ts +3 -0
- package/dist/types/editor/strings.d.ts +17 -0
- package/dist/types/editor/translations/de.d.ts +4 -0
- package/dist/types/editor/translations/es.d.ts +4 -0
- package/dist/types/editor/translations/fr.d.ts +4 -0
- package/dist/types/editor/translations/index.d.ts +7 -0
- package/dist/types/editor/translations/nl.d.ts +4 -0
- package/package.json +1 -1
- package/src/editor/MapEditor.tsx +23 -10
- package/src/editor/PlaceMapDialog.tsx +3 -7
- package/src/editor/StoryEditor.tsx +10 -4
- package/src/editor/index.ts +2 -2
- package/src/editor/mapEditorStrings.ts +10 -2
- package/src/editor/strings.ts +43 -2
- package/src/editor/translations/de.ts +140 -0
- package/src/editor/translations/es.ts +140 -0
- package/src/editor/translations/fr.ts +140 -0
- package/src/editor/translations/index.ts +15 -0
- package/src/editor/translations/nl.ts +140 -0
package/README.md
CHANGED
|
@@ -192,6 +192,13 @@ plain functions behind it (map files, the shape model, overlay geometry)
|
|
|
192
192
|
are `@gramps-connect/story/map-edit`. The editor also needs `terra-draw`
|
|
193
193
|
and `terra-draw-maplibre-gl-adapter` (optional peer dependencies).
|
|
194
194
|
|
|
195
|
+
The editor's own words (and the map editor's) are in English, German,
|
|
196
|
+
Spanish, French or Dutch, by the browser's languages: the person editing,
|
|
197
|
+
not the story, so a German speaker can edit an English story in German.
|
|
198
|
+
`editorStringsFor(...languages)` and `mapEditorStringsFor(...languages)`
|
|
199
|
+
give the built-in words for other choices; pass `strings` and
|
|
200
|
+
`mapStrings` to use your own (Gramps Connect passes its app's language).
|
|
201
|
+
|
|
195
202
|
The editor is built with [Mantine](https://mantine.dev) 8 (optional peer
|
|
196
203
|
dependencies `@mantine/core` and `@mantine/hooks`, needed only by the
|
|
197
204
|
editor): wrap it in a `MantineProvider` and load Mantine's stylesheet. The
|