Support for config.conf/web.conf/shared.conf #9

Closed
opened 2023-10-08 20:55:18 +00:00 by cadusilva · 4 comments

I'm using SimplyTranslate via Docker but with your release there's only this ADDRESS environment variable. Is it possible to reimplement support for the config.conf, web.conf and/or shared.conf files, so I can also use LibreTranslate and other features?

I tried this:

    volumes:
      - /data/simplytranslate/config.conf:/etc/simplytranslate/web.conf

File content:

# This is an example configuration file. It can be either
# /etc/simplytranslate/web.conf or /etc/simplytranslate/shared.conf (this one
# is also used by other frontends, like the Gemini frontend). In case of
# duplicate keys between files, the key in `gemini.conf` takes precedence.

[libre]
# LibreTranslate is disabled by default. If it is enabled, `Instance` is required.
Enabled = True
Instance = https://translate.example.com
# Not all instances need an API key; if the one you use don't, remove this
# line.
#ApiKey = [REDACTED]

[google]
# Google translate is enabled by default.
Enabled = True

[deepl]
# Deepl Translate does not support async as of right now, it will block all other requests
# while it's processing a Deepl Requests, please enable this with caution!
Enabled = False

[iciba]
# ICIBA Translate (a.k.a. PowerWord) is disabled by default.
Enabled = False

[reverso]
Enabled = False

[network]
port = 5000
host = 0.0.0.0

But it didn't work.

Thank you.

I'm using SimplyTranslate via Docker but with your release there's only this `ADDRESS` environment variable. Is it possible to reimplement support for the `config.conf`, `web.conf` and/or `shared.conf` files, so I can also use LibreTranslate and other features? I tried this: ``` volumes: - /data/simplytranslate/config.conf:/etc/simplytranslate/web.conf ``` File content: ``` # This is an example configuration file. It can be either # /etc/simplytranslate/web.conf or /etc/simplytranslate/shared.conf (this one # is also used by other frontends, like the Gemini frontend). In case of # duplicate keys between files, the key in `gemini.conf` takes precedence. [libre] # LibreTranslate is disabled by default. If it is enabled, `Instance` is required. Enabled = True Instance = https://translate.example.com # Not all instances need an API key; if the one you use don't, remove this # line. #ApiKey = [REDACTED] [google] # Google translate is enabled by default. Enabled = True [deepl] # Deepl Translate does not support async as of right now, it will block all other requests # while it's processing a Deepl Requests, please enable this with caution! Enabled = False [iciba] # ICIBA Translate (a.k.a. PowerWord) is disabled by default. Enabled = False [reverso] Enabled = False [network] port = 5000 host = 0.0.0.0 ```` But it didn't work. Thank you.

so I can also use LibreTranslate and other features?

Well I didn't implement LibreTranslate or ICIBA or Deepl. I think I will only implement LibreTranslate since the other implementations (I can't connect to ICIBA, Deepl implementation is buggy) are not good.

> so I can also use LibreTranslate and other features? Well I didn't implement LibreTranslate or ICIBA or Deepl. I think I will only implement LibreTranslate since the other implementations (I can't connect to ICIBA, Deepl implementation is buggy) are not good.

so I can also use LibreTranslate and other features?

Well I didn't implement LibreTranslate or ICIBA or Deepl. I think I will only implement LibreTranslate since the other implementations (I can't connect to ICIBa, Deepl implementation is buggy) are not good.

That'd be a great adition, it's also the secondary backend I use.

> > so I can also use LibreTranslate and other features? > > Well I didn't implement LibreTranslate or ICIBA or Deepl. I think I will only implement LibreTranslate since the other implementations (I can't connect to ICIBa, Deepl implementation is buggy) are not good. That'd be a great adition, it's also the secondary backend I use.

Thank you for the new translation engine, hoping to see LibreTranslate environment variables coming next.

Thank you for the new translation engine, hoping to see LibreTranslate environment variables coming next.

Actually @fattalion wrote iCIBA's code, but I just made it compatible. I'll make LibreTranslate compatible too hopefully.

Actually @fattalion wrote iCIBA's code, but I just made it compatible. I'll make LibreTranslate compatible too hopefully.
Sign in to join this conversation.
No Label
No Milestone
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: ManeraKai/simplytranslate#9
There is no content yet.