LibreTranslate / LibreTranslate/LTEngine
Allow unsupported languages for api > since llm probably supports them
Nobody has claimed this yet.
- Dominant language
- Rust
- Stars
- 197
- Forks
- 32
- Avg merge
- 15h 37m
- Merged PRs (30d)
- 1
Description
Instead of giving
{
"error": "tk is not supported"
}
for unsupported languages, what about just allowing them when using the api? Its easier than expanding the language file for every language, and the llm probably supports them :)
example query for Turkmen:
{
"q": "good morning sir",
"source": "en",
"target": "tk",
"format": "text",
"api_key": ""
}
I did try adding to the languages file, rebuilding, and running, and that works no problem... but it would be cool not to need to modify the source when pulling the latest :)
Its pretty cool, thanks!
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by tracing the API validation that returns the unsupported-language error and inspect the languages file, which the issue mentions modifying. Verify the Turkmen example request and confirm that unsupported targets can be accepted without changing the source language list.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- api
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100