Skip to content

Lu-Jiejie/flow-launcher-multi-translate

Repository files navigation

MultiTranslate

A Flow-Launcher plugin that translates text using multiple translation services.

Supports

Without configuration

Important

The above services are unofficial. Please use with discretion. Some services may have request limits.

Requires configuration

  • DeepLX (need personal URL)
  • MTranServer (need personal URL and token)
  • DeepL (set personal auth key, it will use the official API to translate)

Features

example1

#  Basic usage
tr <text>

# Specify a target language
tr >fr <text>
# or
tr fr <text>

# Specify a source language
tr zh> <text>

# Both source and target languages
tr zh>fr <text>

Just wait for the translation results, and select one of them to copy into the clipboard.

Configuration

See Flow-Launcher plugin settings page.

Service Configs

  • DeepLX: Set your DeepLX URL.
DEEPLX_URL=YOUR_DEEPLX_URL
  • MTranServer: Set your MTranServer URL and token.
MTRAN_SERVER_URL=YOUR_MTRAN_SERVER_URL
MTRAN_SERVER_TOKEN=YOUR_MTRAN_SERVER_TOKEN
  • DeepL: If you set DEEPL_KEY, it will use the official DeepL API to translate, otherwise it will use the free web version (Free version may have request limits).
DEEPL_KEY=YOUR_DEEPL_KEY

Language Codes List

  • I can only ensure the common languages are supported.
  • Each service may support different languages.
export const languageCodesArr = [
  'auto',
  'af',
  'sq',
  'am',
  'ar',
  'hy',
  'as',
  'az',
  'bn',
  'ba',
  'eu',
  'bs',
  'bg',
  'yue',
  'ca',
  'zh',
  'zh_hant',
  'hr',
  'cs',
  'da',
  'prs',
  'dv',
  'nl',
  'en',
  'et',
  'fo',
  'fj',
  'fi',
  'fr',
  'gl',
  'ka',
  'de',
  'el',
  'gu',
  'ht',
  'ha',
  'he',
  'hi',
  'mww',
  'hu',
  'is',
  'ig',
  'id',
  'iu',
  'iu-Latn',
  'ga',
  'it',
  'ja',
  'kn',
  'kk',
  'km',
  'rw',
  'tlh-Latn',
  'tlh-Piqd',
  'ko',
  'ku',
  'ky',
  'lo',
  'lv',
  'lt',
  'mk',
  'mg',
  'ms',
  'ml',
  'mt',
  'mi',
  'mr',
  'mn_cy',
  'mn_mo',
  'my',
  'ne',
  'nb',
  'nb_no',
  'nn_no',
  'or',
  'ps',
  'fa',
  'pl',
  'pt',
  'pt_pt',
  'pt_br',
  'pa',
  'otq',
  'ro',
  'ru',
  'sm',
  'sr-Cyrl',
  'sr-Latn',
  'sd',
  'si',
  'sk',
  'sl',
  'so',
  'es',
  'sv',
  'ty',
  'ta',
  'tt',
  'te',
  'th',
  'bo',
  'ti',
  'to',
  'tr',
  'tk',
  'uk',
  'hsb',
  'ur',
  'ug',
  'uz',
  'vi',
  'cy',
  'xh',
  'yo',
  'yua',
  'zu',
] as const

Thanks

pot-app

About

A Flow-Launcher plugin that translates text using multiple translation services.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published