Connecting Wordfast Pro to Modern MT

From Wordfast Wiki
Jump to: navigation, search

Currently (Jan 2021), Wordfast Pro (WFP) does not have a dedicated setting to connect it to Modern MT. However, the connection can be set up using the flexible Custom MT option in Wordfast Pro 5.19 (or newer).

To do this, go to Preferences > Machine Translation in WFP. Tick Enable Custom MT and then fill in these details:

URL: https://api.modernmt.com/translate?source=en&target=fr&q={ss}
JSON key: translation
Header: MMT-ApiKey=8888888888888,X-HTTP-Method-Override=GET

Important notes:

  1. In the URL string, update the ISO language codes as you need. Our example uses en for English in source and fr for French in target. If you translate, for example, Japanese to Chinese (China), the string to use is https://api.modernmt.com/translate?source=ja&target=zh-CN&q={ss}. ModernMT publish all language codes they support in a geeky way at https://api.modernmt.com/languages.
  2. In the Header string, replace 8888888888888 with your API key. If you haven't got one, you can buy it from the service provider, i.e. Modern MT (it's a third party to Wordfast, so we offer no support on this).