How to save and load localization after exiting and booting?

Hello everyone, as you’ve seen in the title I’m having issues with localization saving and loading, so here’s the thing I’m using Unreal 5.3 I have a language widget with 8 different languages my question now is how can I save and load the last selected language that I choose before closing the game, I have a save game and game instance blueprint my problem is not knowing how to set everything up with what i already have, and tutorials aint helping and theres only one I could find. A little guide would be great @ClockworkOcean

1 Like

If you’ve used the localization dashboard, I have no idea I’m afraid :thinking:

I will need to save an indicator ( probably just an int? ) showing which language was chosen, but I have no idea how that relates to the dashboard.

■■■■. Yeah i did use the localization dashboard to translate but i change the languages from a widget, I’ve been scratching my brain on this a while now and I can bearly find any info on it I did try to save and load like I did for my other variables but those only load when I press the load button and obviously I want it to load a soon as the game reaches it’s menu screen. Hopefully someone as figured it out

1 Like

There’s nothing stopping you from loading any part of the save game at any time you want. You might have to redesign your save / load a little, but… :thinking:

Like I said I don’t even know where to start on it :joy:, the save system was from an old youtube video I’ve been building on it

1 Like

Well, when you load the first menu, just before that :slight_smile:

Not sure I understand you, but here are some screenshots of what i did hopefully everyone can see them well. The main issue now is it seems like the language won’t load when I boot the game.

1 Like

so I got some help and it’s now working. for anyone who wants to use this method in their game all I did was set the CurrentLanguage variable that i have in my game instance at the beginning of the apply language function​:ok_hand: hopefully it dosent break.

1 Like

Great :smiley:

1 Like

For what it’s worth, localization settings are more likely to be saved in the GameUserSettings object and persisted through a config file than to be included in save games.

The localization is a setting and not part of the state of the game. Similar to volume controls or display settings.

2 Likes

I was wondering about that actually, but saw no likely nodes here ( I mean user settings nodes ) :melting_face:

There’s a ‘Get Game User Settings’ node, but there’s also editor created ones for the derived type. Maybe they don’t show up if you don’t update the project setting for which class to use, but the base class one should.

1 Like