Dynamic Localisation (Runtime Data In Blueprints)

Shout out to Low Entry for their plugins and support on this.
https://www.unrealengine.com/marketplace/en-US/profile/Low+Entry

They sent me the following:

You can read the data depending on how
the data in JSON is formatted.

If it’s stored in an object, so
basically {key=>value}, and the value
is a string, then you can just use the
“Get String” or “Get As String”
blueprint.

In your case, you could either have
{language=>{ID=>translation}} or
{ID=>{language=>translation}}.

In both cases you would first do “Get
Object” to get the {ID=>translation}
or {language=>translation} object,
then on that object, you would use
“Get String”.

Here’s a basic example of how that works for me. I’m storing the JSON object so that I’m not reading it from file every time.

“ID”: [
“Lang-0”,
“Lang-1”,
“Lang-2”,
“Lang-3”,
“Lang-4”
]

Hope that helps anyone else trying to achieve this!

1 Like