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:
- Create a new project in Localize (you can use an existing project, but make sure the widget is enabled)
- Copy your project key from your project overview page.
- Open this online html editor
- Paste the project key into the file in the place currently designated 'YOUR PROJECT KEY', (line 22)
- Paste the html or text you wish to import in the place currently designated PASTE HTML OR TEXT HERE (line 33)
- Add an optional page title in the place currently designated PAGE TITLE (line 5)
- Click "update" in the top left and then "run"
- You'll notice your text has been parsed and appears in the bottom right hand side of your screen
- 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.
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.
- Create a Comma-Separated-Values (CSV) file using a spreadsheet tool like Excel or Google Sheets.
- See the following example:
ENTER PHRASE 1 HERE
ENTER PHRASE 2 HERE
- Enter each new phrase in a separate row, putting the source language phrase in the phrase column.
- If you want, you can add a label to the labels column (e.g. csv-import).
- Enter the source language identifier (e.g. 'en' for English, 'es' for Spanish, etc.)
- Leave the following columns empty: translation, description, phraseId, target-language
(these columns are only needed so the import works properly)
- Save the file using the UTF-8 character set.
- Import the file following the instructions here.
- Select CSV for the File Type on the Import screen.
- Select your source language in the Languages section.
- After uploading and submitting the file, you can check the Import History to verify that the import was successful.
- You will find your new phrases in the Pending bin.
For details regarding the reason for the suspension of this feature, please visit the Text Import section of the following page.