how to localizes a string from @editable

Hello, have a small question about localizes, i just made a quests system, in that system i have an @editable of description for that quest. But for some reason when i use something like this:

DescriptionToMessage(Description: string ): message = “{Description}”

When i export and build the auto localization these descriptions are not translate to any language.

Is there any way to avoid making hardcoded string message to be auto localized?

Unfortunately no there’s no way to avoid it, you need to hardcode your strings in the verse code. And if you plan to have it localize avoid using functions like StringToMessage(String) functions are meant to be used when you want dynamic messages that contain content from your verse code.

Eg ScoreMSG<localizes>(Agent:agent):message=“{Agent} has scored a point, really good job.” With this way it will only translate the has scored a point, really good job. but leave agent or any kind of variable intact

Thanks you so much for the help, its sad that we have to hardcode the localizes but still, I hoped it existed in some way I didn’t know about, thanks you again

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.