Page 1 of 1

How to switch Language Quest machine

Posted: Sun Jun 18, 2023 2:12 am
by DebugJk
Hi.

I followed QuestMachine Localization tutorial YouTube video

So i make a TextTable and set a Language Eng, Jap, Kor
1.png
1.png (8.79 KiB) Viewed 3426 times
field.png
field.png (10.46 KiB) Viewed 3426 times

+ add a offer BodyText
notion.png
notion.png (9.28 KiB) Viewed 3426 times
And finally, I added Ui Localization Manager to the Quest machine prepab and wrote English, but there was no language change in English
add.png
add.png (25.93 KiB) Viewed 3426 times
If player choose a language from the main menu, I want the game to be translated into that language. How can i do?

+ I looked up other posts and found that post use the Dialog machine, but I wonder if i need to use the Dialog machine for Localization

I'm sorry if the sentence is awkward using an English translator

Re: How to switch Language Quest machine

Posted: Sun Jun 18, 2023 9:20 am
by Tony Li
Hello,

Do not change "Current Language Player Prefs Key". This is the name of the key in PlayerPrefs, not the language to show the player.

To change the language, set UILocalizationManager.instance.currentLanguage:

Code: Select all

UILocalizationManager.instance.currentLanguage = "English";

Code: Select all

UILocalizationManager.instance.currentLanguage = "Japanese";

Code: Select all

UILocalizationManager.instance.currentLanguage = "Korean";