Skip to content

Instantly share code, notes, and snippets.

@vicenterusso
Last active October 1, 2015 16:00
Show Gist options
  • Save vicenterusso/d2d23cc824fbd6c8c1e3 to your computer and use it in GitHub Desktop.
Save vicenterusso/d2d23cc824fbd6c8c1e3 to your computer and use it in GitHub Desktop.
Unity3D I2 Localization snippet for CSV
#if EXTERNALTRANSLATION
var CSVstring = File.ReadAllText(Application.streamingAssetsPath + "/lang.csv");
CSVstring=CSVstring.Replace(";", ",");
Debug.Log(LocalizationManager.CurrentLanguage);
LocalizationManager.Sources[0].Import_CSV(string.Empty, CSVstring, eSpreadsheetUpdateMode.Replace, ';');
LocalizationManager.CurrentLanguage = LocalizationManager.Sources[0].mLanguages[0].Name;
LocalizationManager.LocalizeAll();
#endif
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment