Skip to content

SinlessDevil/UnityLocalizationEditor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

35 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐ŸŒ Language Change Tools for Unity

A handy Unity Editor tool for managing localization keys and language files directly within the Editor. Easily find, edit, and save localization keys, auto-attach components, and generate language files with zero hassle. Demo

๐Ÿš€ Features

  • ๐Ÿ” Find all TMP_Localizer components in project prefabs
  • โœ๏ธ Edit localizationKey values directly in the Editor window
  • ๐Ÿ“… Save changes back into .txt files and update prefab assets
  • โž• Automatically add TMP_Localizer to all TMP_Text components
  • ๐ŸŒ Generate new language files based on any existing base language

๐Ÿ–ผ๏ธ Screenshots

Localization File View Add Missing Localizers
Main Add
Create Language View Find Localization Files
---------------------- ----------------------
Create Create

More views:

  • All Views

๐Ÿ“† Requirements

  • Unity 2022.3+
  • TextMeshPro
  • Odin Inspector (Editor-only, for UI rendering)

๐Ÿ› ๏ธ How To Use

  1. Open the editor via Tools > Localization Editor ๐Ÿ‡จ
  2. Select a language from the dropdown
  3. Search or scroll to find any localization key
  4. Use Find All TMP_Localizers in Resources to scan all prefabs
  5. Edit keys and press Save Changes To Assets to apply
  6. Use Add TMP_Localizer to All TMP_Text In Resources to automate component attachment
  7. Generate new language files with the Create New Language From Base section

๐Ÿ”น Usage Example

Add a TMP_Localizer to any TMP_Text element. Set its localizationKey. On language change, it will update the text automatically.

public class TMP_Localizer : LocalizeBase
{
    public override void UpdateLocale()
    {
        _text.text = Locale.GetLocalized(localizationKey);
    }
}

About

Localization Editor A handy Unity Editor tool for managing localization keys and language files directly within the Editor. Easily find, edit, and save localization keys, auto-attach components, and generate language files with zero hassle.

Topics

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors