ResourceImporterCSVTranslation

Inherits: ResourceImporter < RefCounted < Object

Imports comma-separated values

Description

Comma-separated values are a plain text table storage format. The format’s simplicity makes it easy to edit in any text editor or spreadsheet software. This makes it a common choice for game localization.

Example CSV file:

  1. keys,en,es,ja
  2. GREET,"Hello, friend!","Hola, amigo!",こんにちは
  3. ASK,How are you?,Cómo está?,元気ですか
  4. BYE,Goodbye,Adiós,さようなら
  5. QUOTE,"""Hello"" said the man.","""Hola"" dijo el hombre.",「こんにちは」男は言いました

Tutorials

Properties

bool

compress

true

int

delimiter

0


Property Descriptions

bool compress = true

If true, creates an OptimizedTranslation instead of a Translation. This makes the resulting file smaller at the cost of a small CPU overhead.


int delimiter = 0

The delimiter to use in the CSV file. The default value matches the common CSV convention. Tab-separated values are sometimes called TSV files.

Previous Next


© Copyright 2014-present Juan Linietsky, Ariel Manzur and the Godot community (CC BY 3.0). Revision 53e837c6.

Built with Sphinx using a theme provided by Read the Docs.