Skip to content

Localise assets from Illustrator based on artboard name.

Notifications You must be signed in to change notification settings

samjt/Illustrator-Asset-Localiser

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 

Repository files navigation

Illustrator-Asset-Localiser

Iterate through Datasets with localised text in them and output artboard assets that have been tagged to be localised.

How-To:

  1. Put your localised text into a CSV file so that each line represents a language, with one column the language identifier, e.g. en-US and another column the localised text.
  2. Import your variables into Illustrator using Vasily Hall's Variable Importer.
  3. Set the Dataset names to be the language identifier and bind the localised text to the text fields it should appear in.
  4. Each artboard that contains localised text should have the keyword i18n in it's name, artboards that should be excluded should start with -
  5. Set a default Font and any fallback fonts required for different languages. The default font is specified in the default case in the switch statement. Alternate language fonts are set using the language identifier. e.g.

case "zh-TW": doc.textFrames[q].textRange.characterAttributes.textFont = app.textFonts.getByName("Meiryo-Bold");

Sets the font for Taiwanese to Meiryo Bold.

Run the script, a folder named "Assets current date" will be created in the same folder as the illustrator file. Each language will have it's own subfolder, any artboards that did not require localisation will be exported at the top level.

About

Localise assets from Illustrator based on artboard name.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published