diff options
Diffstat (limited to 'Thronefall_v1.0/Thronefall/I2.Loc/CallbackNotification.cs')
-rw-r--r-- | Thronefall_v1.0/Thronefall/I2.Loc/CallbackNotification.cs | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/Thronefall_v1.0/Thronefall/I2.Loc/CallbackNotification.cs b/Thronefall_v1.0/Thronefall/I2.Loc/CallbackNotification.cs new file mode 100644 index 0000000..7381c2e --- /dev/null +++ b/Thronefall_v1.0/Thronefall/I2.Loc/CallbackNotification.cs @@ -0,0 +1,15 @@ +using UnityEngine; + +namespace I2.Loc; + +public class CallbackNotification : MonoBehaviour +{ + public void OnModifyLocalization() + { + if (!string.IsNullOrEmpty(Localize.MainTranslation)) + { + string translation = LocalizationManager.GetTranslation("Color/Red"); + Localize.MainTranslation = Localize.MainTranslation.Replace("{PLAYER_COLOR}", translation); + } + } +} |