Skip to main content

Set per-language auto-translation settings

PUT 

https://app.tolgee.io/v2/projects/:projectId/per-language-auto-translation-settings

Set per-language auto-translation settings

Request

Path Parameters

    projectId int64required

Body arrayrequired

  • Array [
  • enableForImportbooleanrequired

    If true, import will trigger batch operation to translate the new new keys. It includes also the data imported via CLI, Figma, or other integrations using batch key import.

    languageIdint64
    usingMachineTranslationbooleanrequired

    If true, new keys will be automatically translated via batch operationusing primary machine translation service.When "usingTranslationMemory" is enabled, it tries to translate it with translation memory first.

    usingTranslationMemorybooleanrequired

    If true, new keys will be automatically translated via batch operation using translation memory when 100% match is found

  • ]

Responses

OK

Schema
    _embedded object
    configs object[]
  • Array [
  • enableForImportbooleanrequired

    If true, import will trigger batch operation to translate the new new keys. It includes also the data imported via CLI, Figma, or other integrations using batch key import.

    languageIdint64
    usingMachineTranslationbooleanrequired

    If true, new keys will be automatically translated via batch operationusing primary machine translation service.When "usingTranslationMemory" is enabled, it tries to translate it with translation memory first.

    usingTranslationMemorybooleanrequired

    If true, new keys will be automatically translated via batch operation using translation memory when 100% match is found

  • ]

Authorization: X-API-Key

name: X-API-Keytype: apiKeyin: header
var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Put, "https://app.tolgee.io/v2/projects/:projectId/per-language-auto-translation-settings");
request.Headers.Add("Accept", "application/json");
request.Headers.Add("X-API-Key", "<X-API-Key>");
var content = new StringContent("[\n {\n \"enableForImport\": true,\n \"languageId\": 0,\n \"usingMachineTranslation\": true,\n \"usingTranslationMemory\": true\n }\n]", null, "application/json");
request.Content = content;
var response = await client.SendAsync(request);
response.EnsureSuccessStatusCode();
Console.WriteLine(await response.Content.ReadAsStringAsync());
Request Collapse all
Base URL
https://app.tolgee.io
Auth
Parameters
— pathrequired
Body required
[
  {
    "enableForImport": true,
    "languageId": 0,
    "usingMachineTranslation": true,
    "usingTranslationMemory": true
  }
]
ResponseClear

Click the Send API Request button above and see the response here!