Automatic Language Translation

EasyCatalog supports the use of third party translation services. At the current time the only available service is provided by DeepL

Once you have created an account, go to the EasyCatalog Advanced Preferences and configure the Language Translation Services section with the correct API URL and Authentication key.

The service can be invoked using an embedded command, which takes a string and translates it to the specified locale using a single request to the service. For example:

TRANSLATELANGUAGE(FIELDSTR(‘field name’), ‘de’, ‘en’)

Where a lot of translations are processed, a better method is to process the data using a createcontent.lua script, which batches the requests together to the limit of the API (currently 50). This example uses the translatefield method on a recordset after adding fields to accommodate the locales required:

createcontent.lua