https://github.com/okhotnikov/mylocalization_unityasset
A easy-to-use localization system for Unity projects. Designed to simplify the management of multilingual content in games and applications.
https://github.com/okhotnikov/mylocalization_unityasset
asset localization unity
Last synced: about 2 months ago
JSON representation
A easy-to-use localization system for Unity projects. Designed to simplify the management of multilingual content in games and applications.
- Host: GitHub
- URL: https://github.com/okhotnikov/mylocalization_unityasset
- Owner: okhotnikov
- License: mit
- Created: 2025-01-15T23:07:08.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-01-20T21:52:00.000Z (over 1 year ago)
- Last Synced: 2025-02-01T19:14:39.023Z (over 1 year ago)
- Topics: asset, localization, unity
- Language: C#
- Homepage:
- Size: 565 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# MyLocalization_UnityAsset
 
A powerful and easy-to-use localization system for Unity projects. Designed to simplify the management of multilingual content in games and applications.
## Installation
1. Open Unity and navigate to **Window -> Package Manager**.
2. Click the `+` button in the top left corner and select **Add package from git URL...**.
3. Enter the following URL and click **Add**:
https://github.com/okhotnikov/MyLocalization_UnityAsset.git
Alternatively, clone the repository directly and place it in your `Packages` folder.
Using .tgz archive
1. Download the archive [com.eokhotnikov.mylocalization-v0.1.2](https://github.com/yourname/repository/releases/download/v0.1.2/com.eokhotnikov.mylocalization-v0.1.2.tgz).
2. In Unity, open `Window > Package Manager`.
3. Click `+ > Add package from tarball...`.
4. Select the downloaded file.
## Usage
1. Add the `LocalizationManager` prefab to your scene.
2. Use the `LocalizationManager.GetText(key)` method to retrieve localized strings.
3. To add new languages, update the `LocalizationTable` asset in the `Resources` folder.
## Features
- Easy-to-use localization system
- Support for multiple languages
- Runtime language switching
- JSON-based localization files
## Example
```csharp
using Localization;
public class Example : MonoBehaviour
{
void Start()
{
if (!MyLocalization.Instance.IsLoaded)
{
Debug.LogError("Localization is not loaded.");
return;
}
if (!MyLocalization.Instance.IsSynced)
{
Debug.LogError("Localization is not synced.");
return;
}
string greeting = MyLocalization.Get("greeting");
Debug.Log(greeting);
}
}
```
## License
This project is licensed under the MIT License. See the [LICENSE](LICENSE) file for details.
For information about third-party libraries and their licenses, see [THIRD_PARTY_LICENSES.md](THIRD_PARTY_LICENSES.md).
## Latest Release
[Download v0.1.2](https://github.com/okhotnikov/MyLocalization_UnityAsset/releases/tag/v0.1.2)