Skip to main content

Import segments to resource - Examples

This page shows a view examples for the options property:

 

Sample options for Excel or Open Office imports

 

CODE
{
  "type": "SpreadSheet",
  "extension": ".xls",
  "columns": [
    {
      "idx": 0,
      "type": "Locale",
      "cfid": null,
      "locale": "en",
      "issrc": true
    },
    {
      "idx": 1,
      "type": "Locale",
      "cfid": null,
      "locale": "fr",
      "issrc": false
    },
    {
      "idx": 2,
      "type": "Comments",
      "cfid": null,
      "locale": "fr",
      "issrc": false
    },
    {
      "idx": 3,
      "type": "Custom",
      "cfid": "CustomStr12",
      "locale": "fr",
      "issrc": false
    }
  ],
  "isHtml": true,
  "firstRow": 0,
  "sheets": [
    0
  ],
  "preserveTagNames": false,
  "skipMono": false,
  "skipIdenticals": true,
  "replaceExisting": null,
  "tagsRemove": true,
  "tagsReplaceChar": null,
  "updateCFOptions": false,
  "isAligned": false
}

 

Sample options for CSV imports

 

CODE
{
  "type": "CSV",
  "columns": [
    {
      "idx": 0,
      "type": "Locale",
      "cfid": null,
      "locale": "en",
      "issrc": true
    },
    {
      "idx": 1,
      "type": "Locale",
      "cfid": null,
      "locale": "fr",
      "issrc": false
    },
    {
      "idx": 2,
      "type": "Comments",
      "cfid": null,
      "locale": "fr",
      "issrc": false
    },
    {
      "idx": 3,
      "type": "Custom",
      "cfid": "CustomStr12",
      "locale": "fr",
      "issrc": false
    }
  ],
  "isHtml": false,
  "hasHeader": true,
  "encoding": null,
  "separator": ",",
  "skipMono": false,
  "skipIdenticals": true,
  "replaceExisting": true,
  "tagsRemove": false,
  "tagsReplaceChar": null,
  "updateCFOptions": false,
  "isAligned": false
}

 

Sample options for TBX imports

 

CODE
{
  "type": "TBX",
  "encoding": "utf-8",
  "mergeLocale": "en",
  "locales": [
    "en",
    "fr"
  ],
  "sourceLocale": "en",
  "commentsFields": [],
  "customFields": {},
  "skipMono": false,
  "skipIdenticals": false,
  "replaceExisting": null,
  "tagsRemove": false,
  "tagsReplaceChar": null,
  "updateCFOptions": false,
  "isAligned": false
}

 

 

Sample options for TMX imports

 

CODE
{
  "type": "TMX",
  "locales": {
    "en": true,
    "fr": false
  },
  "sourceLocale": "en",
  "mergeLocale": null,
  "dateFrom": "2017-06-12T10:57:30.9265916Z",
  "dateTo": null,
  "skipMono": false,
  "skipIdenticals": true,
  "replaceExisting": null,
  "tagsRemove": true,
  "tagsReplaceChar": null,
  "updateCFOptions": false,
  "isAligned": false
}

 

 

 

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.