Skip to content

Allow unsupported languages for api > since llm probably supports them #4

Description

@christopherpickering

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!

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions