Changing a string with Smart String

Hello, I have a little question that I couldn’t find the answer to after an hour of searching. I have a string that uses variables from scripts. Since the variables change over the course of the game, I want the string to change as well. But it “freezes” at its original value. How can I update the string?

You can call RefreshString on the localized string. If you are using persistent variables it will update automatically.
https://docs.unity3d.com/Packages/com.unity.localization@1.0/manual/Smart/Persistent-Variables-Source.html