How to switch Language Quest machine

Announcements, support questions, and discussion for Quest Machine.
Post Reply
DebugJk
Posts: 10
Joined: Sun May 28, 2023 2:46 am

How to switch Language Quest machine

Post 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 3438 times
field.png
field.png (10.46 KiB) Viewed 3438 times

+ add a offer BodyText
notion.png
notion.png (9.28 KiB) Viewed 3438 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 3438 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
User avatar
Tony Li
Posts: 22112
Joined: Thu Jul 18, 2013 1:27 pm

Re: How to switch Language Quest machine

Post 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";
Post Reply