summaryrefslogtreecommitdiff
path: root/Thronefall_v1.57/Thronefall/I2.Loc/CallbackNotification.cs
blob: 70602923c41d20ab2e4d8b2fa6d81850148991b0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
using UnityEngine;

namespace I2.Loc;

public class CallbackNotification : MonoBehaviour
{
	public void OnModifyLocalization()
	{
		if (!string.IsNullOrEmpty(Localize.MainTranslation))
		{
			string newValue = TextTranslator.Translate("Color/Red");
			Localize.MainTranslation = Localize.MainTranslation.Replace("{PLAYER_COLOR}", newValue);
		}
	}
}