https://github.com/recogito/recogito-client-core
Core functions and components for RecogitoJS and Annotorious
https://github.com/recogito/recogito-client-core
annotation text-annotation
Last synced: 4 months ago
JSON representation
Core functions and components for RecogitoJS and Annotorious
- Host: GitHub
- URL: https://github.com/recogito/recogito-client-core
- Owner: recogito
- License: bsd-3-clause
- Created: 2020-04-02T18:53:20.000Z (about 6 years ago)
- Default Branch: main
- Last Pushed: 2023-11-09T11:57:26.000Z (over 2 years ago)
- Last Synced: 2025-09-14T10:41:35.548Z (9 months ago)
- Topics: annotation, text-annotation
- Language: JavaScript
- Homepage:
- Size: 1.01 MB
- Stars: 16
- Watchers: 1
- Forks: 47
- Open Issues: 10
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# recogito-client-core
Core functions, classes and components for [RecogitoJS](https://github.com/recogito/recogito-js),
[Annotorious](https://github.com/recogito/annotorious) and [Annotorious OpenSeadragon](https://github.com/recogito/annotorious-openseadragon).
To install `npm install @recogito/recogito-client-core`
## Contributing UI Translations
If you want to contribute UI translations to Annotorious or RecogitoJS, you've come to the right place!
In [this folder](https://github.com/recogito/recogito-client-core/tree/main/src/i18n)
you will find `messages` files, one file for each translation.
Each `messages` file is a dictionary of the English labels and their translations. For example,
here's the German translation file `messages_de.json`.
```json
{
"Add a comment...": "Kommentar schreiben...",
"Add a reply...": "Antwort schreiben...",
"Add tag...": "Tag...",
"Cancel": "Abbrechen",
"Close": "Schliessen",
"Edit": "Bearbeiten",
"Delete": "Löschen",
"Ok": "Ok"
}
```
### To add a new translation
- Fork this repository
- Add a message file to the [src/i18n folder](https://github.com/recogito/recogito-client-core/tree/main/src/i18n)
named `messages_{iso}.json`, where {iso} is the 2-character ISO code of the language.
- Copy the dictionary above, and replace the translations accordingly.
- [Send a pull request](https://www.freecodecamp.org/news/how-to-make-your-first-pull-request-on-github-3/)
Many thanks in advance! If you have questions, do get in touch via the [Annotorious](https://gitter.im/recogito/annotorious) or
[RecogitoJS](https://gitter.im/recogito/recogito-js) chat on Gitter.