Export a table collection to a file, such as JSON, and import the result back.
Use the Resource Tables window to hand content to translators or to move a collection between projects. You can export collections to the following formats:
| Format | Description |
|---|---|
| JSON | Contains every table in the collection in one file. Best for moving collections between projects. |
| Character Set | Export only. This file contains the distinct characters that appear in the selected tables. You can use this file for the Font Asset Creator. |
| CSV | One row per key, one column per locale, plus comment columns. Opens in any spreadsheet viewer. Requires the com.unity.localization package. |
| XLIFF | XML Localization Interchange File Format, the exchange format most translation tools accept. Requires the com.unity.localization package. |
Note: When the com.unity.localization package is installed, collections with a configured Google Sheets extension can also synchronize through the same menus.
When you export a collection to a file format, the output file contains the following information:
JSON exports omit entries flagged Exclude entry from editor export. Refer to Localization tables.
To export a collection:
When you select the options Character Set or XLIFF, you can choose which tables to export. When you export to XLIFF, Unity combines the selected tables into one file for each language.
The import menu applies to the collection that you select in the window. For each format that that you can import with, you can select between two options:
{Format} (Merge) updates matching keys, adds new ones, and keeps everything else.{Format} (Replace) makes the collection match the file and removes keys the file doesn’t contain.Where {Format} is the format you’re importing, for example JSON.
Imports register as a single undo step. To roll one back, focus the Resource Tables window and select Edit > Undo Import {Format} (for example, Undo Import JSON), or press Ctrl+Z (macOS: Cmd+Z).