Hey guys, just to help anyone out there with the same thing;
We have some things in our game, like a button to with the label "Hire for $10" but this needs to be localized, and I started using replace, but now we've come with a better way, just add this new method to Localization.cs
static public string Localize(string key, params object[] pValue)
{
string tString = Localize(key);
tString = string.Format(tString, pValue);
return tString;
}
And in our language.txt use like that:
and in your code you can just pass, many parameters as you want, like these:
hireLabel.text = Localization.Localize("hire_btn", tLevelPrice);
Help us here! I hope can help any other! Maybe Aren can put this by default on the Localization.