# Algebras AI + Unity

## Unity Localization Integration

## Getting Started

Follow these steps to start using the Algebras Unity package for AI-powered localization in your Unity projects.

#### 1. Installation

```javascript
https://github.com/algebras-ai/algebras-unity.gitCopy
```

Add this URL to Unity Package Manager: **Window → Package Manager → + → Add package from git URL**

#### 2. API Key Setup

You haven't created any API keys yet.

Create one to get started with the integrations.

[Create API Key](https://platform.algebras.ai/integrations/unity)

#### 3. Unity Setup

**Create Service Provider:** Assets → Create → Algebras → Service Provider

**Add Extension:** Select StringTableCollection → Inspector → Add Extension → Algebras Extension

## Key Features

Essential features for Unity localization

#### Two Translation Modes

- Batch mode for fast bulk processing 
- Single mode with glossary support for precise translations

#### Unity Integration

Seamlessly extends Unity's built-in Localization system with AI-powered translation capabilities

#### UI-Safe Mode

Preserves Unity markup and formatting to ensure your UI elements remain intact during translation

#### Custom Prompts

Add context-specific translation instructions to get better, more accurate translations for your game

## Configuration

Configure your Unity project with Algebras settings

#### Service Provider Settings

- **API Key:** Your Algebras AI platform key
- **Application Name:** Identifier for API requests
- **Batch Size:** Strings per request (1-100)
- **Max Parallel Batches:** Concurrent requests (1-10)

#### Per-Table Settings

- **Translation Mode:** Batch (fast) or Single (glossary support)
- **UI Safe:** Preserves Unity markup
- **Custom Prompt:** Context-specific instructions
- **Glossary ID:** Terminology consistency (Single mode)

## Translation Modes

Choose the right translation mode for your Unity project

#### Batch Mode

- Fast bulk processing
- Parallel requests
- No glossary support

#### Single Mode

- Individual translations
- Glossary support
- Higher precision

## Unity Workflow Integration

How the Unity package enhances your game localization workflow

#### Native Unity Integration

Seamlessly integrates with Unity's built-in Localization system, extending it with AI-powered translation capabilities.

#### Batch Processing

Process large amounts of text efficiently with configurable parallel processing, perfect for translating entire game projects.

#### UI-Safe Translation

Preserves Unity markup and formatting to ensure your UI elements and special characters remain intact during translation.

#### Custom Context

Add game-specific context and terminology through custom prompts and glossary support for more accurate translations.

## Requirements

System requirements and dependencies for the Unity package

#### Unity Requirements

- Unity 2021.3 or later
- Unity Localization Package 1.4.0+
- Algebras AI API key

#### Package Features

- Two translation modes (Batch & Single)
- UI-Safe mode for Unity markup
- Custom prompts and glossary support
- Configurable parallel processing

## Installation Methods

Multiple ways to install the Algebras Unity package

#### Via Git URL (Recommended)

1. Open Unity Package Manager
2. Click + → Add package from git URL
3. Enter the package URL:

```javascript
https://github.com/algebras-ai/algebras-unity.gitCopy
```

#### Via Package Manager Manifest

Add to your manifest.json dependencies:

```javascript
{ "dependencies": { "ai.algebras.localization": "https://github.com/algebras-ai/algebras-unity.git" } }
```

## Documentation & Support

Resources to help you get the most out of the Algebras Unity package

#### [Unity Package Repository](https://github.com/algebras-ai/algebras-unity)

View the source code, contribute, and report issues on GitHub.

#### [Documentation](https://help.algebras.ai/?_gl=1*1dfhbrz*_ga*NjI0NjI5NjM0LjE3NTk3NTA3MDA.*_ga_XWC9QYMESQ*czE3NjA2MzM0NzIkbzgkZzEkdDE3NjA2Mzg0MTEkajYwJGwwJGgw)

Comprehensive guides, tutorials, and reference documentation.

#### Support

Need help? Reach out to us through one of these channels:

[Email Support](mailto:support@algebras.ai)  
[Help Center](https://help.algebras.ai/)
