SproutyDialogsTranslationManager
Inherits: RefCounted
Description
This class manages the translations for the Sprouty Dialogs plugin. It provides methods to load and manage translations from CSV files.
Methods
| Return Type | Method |
|---|---|
| String | get_translated_dialog(key: String, dialog_data: SproutyDialogsDialogueData) |
| String | get_translated_character_name(key_name: String, character_data: SproutyDialogsCharacterData) |
| void | collect_translations() |
Method Descriptions
func get_translated_dialog(key: String, dialog_data: SproutyDialogsDialogueData) -> String
Returns the translated dialog text for a given key in a DialogueData.
func get_translated_character_name(key_name: String, character_data: SproutyDialogsCharacterData) -> String
Returns the translated character name for a given key in a CharacterData.
func collect_translations() -> void
Collect translation files from the CSV folder and add them to Project > Project Settings > Localization > Translations to import the translations. This allow to use the translations from CSV files in the project. More information on Godot Internationalizing games.