How can I add new language in this which can be switchable manually?
using UnityEngine;
using TMPro;
public class MyLocalisation : MonoBehaviour
{
public string EnglishWord;
public string SpanishWord;
private void Update()
{
if (Lean.Localization.LeanLocalization.CurrentLanguage == "English")
{
if (this.GetComponent<TextMeshProUGUI>().text != EnglishWord)
{
this.GetComponent<TextMeshProUGUI>().text = EnglishWord;
}
}
else
{
if (this.GetComponent<TextMeshProUGUI>().text != SpanishWord)
{
this.GetComponent<TextMeshProUGUI>().text = SpanishWord;
}
}
}
}