dictionary/translate API #944
Labels
No labels
_CRITICAL_
API
app
backEnd
Blocked, waiting for further changes
bug
cleanup
close
design
duplicate
enhancement
feature request
frontEnd
help wanted
invalid
low priority
needs input
needs review
project documentation
question
research
reviewed
script
security
SQL
style
testing
topLevel
wontfix
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Andras/BoundlessFlowCampus2K#944
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
dictionary/translate
many API's exist one example is freedictionaryapi that support many languages.
This is not meant to be used for translating things in practice more as a fun API to see what certain words are in different languages
Research / decitions
FreeDictionaryApi
FreeDictionaryApi is a free API that provides dictionary data from Wiktionary. It can be used to get word translations, definitions and examples.
Features
Usage
Request example
GET
https://freedictionaryapi.com/api/v1/entries/fr/maison?translations=truefris the languagemaisonis the search wordtranslations=trueincludes translations in the responsePros
Cons
Licence
The API uses Wiktionary data under the CC BY-SA 4.0 license. Attribution to Wiktionary and FreeDictionaryApi is required when using the API.
Conclusion
FreeDictionaryApi could work well for simple dictionary or word translation features. It's free, easy to use and does not require authentication.
LibreTranslate
LibreTranslate is an open source machine translation API. Can be used to transtale:
Features
Usage
Request example (self-hosted)
POST
http://localhost:5000/translateExample body
Example response
Pros
Cons
Licence
Uses the AGPLv3 open source license
Conclusion
LibreTranslate could be a good option for full sentence and multi language translation support. It allows self hosting and gives more translation functionality than dictionary APIs.
Do we want this?
Translation functionality could be a fun addition to the project for translating simple words between multiple languages. Based on the research, FreeDictionaryApi seems to be the most suitable option if the goal is mainly simple word translations or dictionary style lookups. It's free, simple to use and does not require authentication. LibreTranslate supports more translation options like full sentence translations and can also be self hosted. However, it may be unnecessary if the feature is only intended for translating individual words. Both APIs support multiple languages and legal to use as long as their license requirements are followed.
Looks good, we will create an issue for implementation of a view using FreeDictionaryApi.
And the conclusion will be added to the wiki.
New issue for documentation