Export Translated Data
Export text that can be translated into a file.
Command
# local game data (windows)
Charon.exe DATA I18N EXPORT --dataBase "c:\my app\gamedata.json" --schemas Character --sourceLanguage en-US --targetLanguage fr --output "c:\my app\character_loc.xliff" --outputFormat xliff
# remote game data
Charon.exe DATA I18N EXPORT --dataBase "https://charon.live/view/data/My_Game/develop/" --schemas Character --sourceLanguage en-US --targetLanguage fr --output "./character_loc.xliff" --outputFormat xliff --credentials "<API-Key>"
Parameters
- --dataBase
Absolute or relative path to game data. Use quotation marks if your path contains spaces.
# local file --dataBase "c:\my app\gamedata.json" # remote server --dataBase "https://charon.live/view/data/My_Game/develop/"
- --credentials
The API key used to access remote server in case of –dataBase being URL.
- --schemas
A list of types of documents (schemas) to export. By default all schemas EXCEPT metadata are exported.
Use space to separate multiple schemas.
You can use wildcards (*) at the beginning and end of names.
You can use identifiers in {} instead of names.
You can exclude certain names by using an exclamation mark (!) at the beginning of their names.
# schema name --schemas Character --schemas Character Item # all (default) --schemas * # masks --schemas Char* --schemas *Modifier --schemas *Mod* # schema id --schemas {18d4bf318f3c49688087dbed} # negation --schemas Char* !Character --schemas !*Item*
- --sourceLanguage
Source (original) language for translation. Value is language tag (BCP 47).
Use DATA I18N LANGUAGES to get list of used languages.
# it is used as <source> in XLIFF --sourceLanguage en-US
- --targetLanguage
Target language for translation. Value is language tag (BCP 47).
# it is used as <target> in XLIFF --targetLanguage es-ES
- --output
Path to a file to which data will be exported. If the file exists, it will be overwritten. The directory must already exist. Alternatively, you can output to Standard Error, Standard Output, /dev/null, or a URL.
# standart output (default) --output out --output con # standart error --output err # null device --output null # absolute path (windows) --output "c:\my app\input.json" # absolute path (unix) --output /user/data/input.json # relative path (universal) --output "./input.json" # remote location (HTTP) --output "http://example.com/input.json" # remote location with authentication (FTP) --output "ftp://user:password@example.com/input.json"
- --outputFormat
Format of exported data.
# XLIFF v2 (default) --outputFormat xliff --outputFormat xliff2 # XLIFF v1 --outputFormat xliff1 # XSLX Spreadsheet --outputFormat xslx
- --outputFormattingOptions
Additional options for specified format.
This command supports universal parameters.
Output Data Schema
The expored data follow this schema:
{ "Collections": { "<Schema-Name>": [ { // <Document> }, // ... ] } }