LibreTranslate / LibreTranslate/LTEngine

Allow unsupported languages for api > since llm probably supports them

Open
#4 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.