Text Import

Option 1 (JSFiddle)

A formal release of the improved text import feature is in the pipeline. In the meantime, here is a simple workaround which will allow you to import text or html directly into your project:

  1. Create a new project in Localize (you can use an existing project, but make sure the widget is enabled)
  2. Copy your project key from your project overview page.
  3. Open this online html editor
  4. Paste the project key into the file in the place currently designated 'YOUR PROJECT KEY', (line 22)
  5. Paste the html or text you wish to import in the place currently designated PASTE HTML OR TEXT HERE (line 33)
  6. Add an optional page title in the place currently designated PAGE TITLE (line 5)
  7. Click "update" in the top left and then "run"
  8. You'll notice your text has been parsed and appears in the bottom right hand side of your screen
  9. Change the language in the widget to something other than your source language, and then refresh the page once. (The content will not translate yet but this will trigger Localize to detect the content)

From here, go back to your Localize project and refresh your browser. You'll find the content populating in your pending bin where it can then be approved and translated.

Option 2 (CSV)

If you simply want to import new phrases in your source language that are text-based and do not contain HTML, you can use the following workaround.

  1. Create a Comma-Separated-Values (CSV) file using a spreadsheet tool like Excel or Google Sheets.
  2. See the following example:
phrase
translation
description
phraseId
labels
source-language
target-language

ENTER PHRASE 1 HERE

csv-import

en

ENTER PHRASE 2 HERE

csv-import

en

  1. Enter each new phrase in a separate row, putting the source language phrase in the phrase column.
  2. If you want, you can add a label to the labels column (e.g. csv-import).
  3. Enter the source language identifier (e.g. 'en' for English, 'es' for Spanish, etc.)
  4. Leave the following columns empty: translation, description, phraseId, target-language
    (these columns are only needed so the import works properly)
  5. Save the file using the UTF-8 character set.
  6. Import the file following the instructions here.
  7. Select CSV for the File Type on the Import screen.
  8. Select your source language in the Languages section.
  9. After uploading and submitting the file, you can check the Import History to verify that the import was successful.
  10. You will find your new phrases in the Pending bin.

What's Next

For details regarding the reason for the suspension of this feature, please visit the Text Import section of the following page.

Text Import

Text Import


Suggested Edits are limited on API Reference Pages

You can only suggest edits to Markdown body content, but not to the API spec.