LanguageSystem Pro
  • Welcome
  • Getting Started
    • Quickstart
    • Importing and Exporting
    • InternalDatabase Mode
    • ExternalFiles Mode
    • GlobalExternal Mode
    • ComponentBased Mode
    • Importing Translated Text into Custom Script
    • LanguageAudioManager
    • AudioWarper Component
    • Importing Audio into Custom Script
    • Switching Languages
    • LanguageManagerEditor
Powered by GitBook
On this page
  1. Getting Started

Importing and Exporting

PreviousQuickstartNextInternalDatabase Mode

Last updated 8 months ago

Importing and Exporting Language Files

Importing Language Files

LanguageSystem Pro supports importing language data from StreamingAssets. When using external files (either global or per-language files), ensure your files are properly formatted and placed in the Languages folder.

  • Supported Formats:

    • JSON: Structured with TextID and corresponding TranslatedText.

    • XML: Using a serialized object structure.

    • CSV: CSV files should have the first row as the language IDs, and each following row should map a TextID to its translations.

  • Automatic Detection: The system will automatically detect whether a JSON, XML, or CSV file exists in the StreamingAssets/Languages/ folder and load the appropriate one.

If you choose to use InternalDatabase mode, you can also import files with translations already edited in an external application into Unity using the Import(JSON,XML,CSV) buttons in the LanguageManager component.

Exporting Language Files

You can also export your current language data to the StreamingAssets folder in the format of your choice (JSON, XML, or CSV). This can be done directly from the Unity Editor using the Import(JSON,XML,CSV) button in the LanguageManager component.

How to export: Just click the Export(JSON,XML,CSV) button in the LanguageManager component, specifying the path of the desired file. You can use this to backup your data or prepare files with translations.