# LocalizationEditor.cs

**LocalizationEditor Class**

The LocalizationEditor class is an EditorWindow that provides a graphical interface in the Unity Editor to manage localization features. It allows users to select languages, run translation processes, and manage localization data.

**Namespace**: Indie.Localization

**Usage**:

1. **Opening the Localization Manager:**\
   Access the Localization Manager from the Unity Editor by navigating to ***Tools > Indie > Localization Manager***. This opens the LocalizationEditor window.
2. **Running Translations:**\
   Use the "**Run Translation Process**" button to initiate translation of all text components in the scene. The button will indicate progress and will be disabled during the operation, then re-enabled when the operation is completed.
3. **Selecting and Setting Languages:**\
   Select a language from the dropdown list and click "**Set Current Language**" to apply the selection.
4. **Translating Specific Text:**\
   This is used for testing purposes to test communication with the OpenAI API. Enter text into the "Translate This" field and click "Translate" to receive a translated JSON output in the console.
5. **Clearing Translations:**\
   Click "Clear Translations" to remove all translation data and reset the scene. A confirmation dialog will appear before proceeding.
