Editor Localization: How does it work?
Hello,
Does anyone know how localization works inside the Unity editor?
For example if I download Unity in language A and write an editor extension in language B (or visa versa).
Will Unity display that editor in the installed language or in the original written? As far as I can tell you can't change the language of the editor anywhere other then when you install Unity. (Edit: it may use your system's language i.e. Application.SystemLanguage (read-only))
If the editor does not automatically localize editor text do I have to make sure all the editor extension's code goes through LocalizationDatabase for things such as button names, label fields, etc...
I would like to publish an asset on the asset store with localization options.
Thanks.
I just tried changing my system's language and region settings, restarting my computer then opening Unity, the whole editor was still in English (despite my system and keyboard being in Spanish), I even tried manually localizing a part of my custom editor with the LocalizationDatabase.GetLocalizedString(string) but even that was still in English, furthermore I tried debugging what Unity though the language was with
Debug.Log(Application.systemLanguage); and in console it said Spanish despite the whole editor still displaying English. So now I'm very confused as to how the editor localizes, do I really need to install Unity in another language to find out if my editor scripts get localized? Has anyone downloaded an editor extension from the asset store that was in a different language?
Your answer
Follow this Question
Related Questions
Trying to add EditorGUILabels and am getting a couple errors. 0 Answers
Custom Editor showing twice? 0 Answers
Can't update ObjectField after object is selected 1 Answer
How to add and remove component with the same toggle in editor? 1 Answer
Object field in the scene view - Custom Editor Script 0 Answers