Fun challenge. I wrote a quick script to help. The script will let you rename all the comps in a selection, or if no selection is made, all the comps in the project.
When you run the script, it will create a dialog box with the names of all the comps it has found pre-loaded in the edit text box. When you click the “Rename” button, it will rename the comps with whatever the contents of the edit text box are.
The workflow I’d suggest is this:
- Run the script.
- Select all and copy the Simplified Chinese comp names out of the dialog box.
- Paste them into a Google Sheets spreadsheet, starting at cell A1.
- In cell B1, enter this formula: =googletranslate(A1, “zh”, “en”)
- Select from cell B1 down to the last cell that has a name in the A column, and Fill Down (Ctrl+D on a PC, Cmd+R on a Mac)
- Select and copy all the translated names
- Paste them back into the script’s dialog box.
- Click “Rename”
The script is attached.