/// <summary> /// Localise the specified value based on the currently set language. /// </summary> /// If language is specific then this method will try and get the key for that particular value, returning null if not found. public static string Get(string key, string language = null, bool missingReturnsNull = false) { ShowDeprecationWarning(); return(GlobalLocalisation.GetText(key, language) ?? key); }
/// <summary> /// Returns whether the specified key is present. /// </summary> public static bool Exists(string key) { ShowDeprecationWarning(); return(GlobalLocalisation.Exists(key)); }
/// <summary> /// Try and set the specified language, first verifying that we have it loaded and it is allowed to select it. /// </summary> /// <param name="newDefaultLanguage"></param> /// <returns></returns> public static bool TrySetAllowedLanguage(string newDefaultLanguage) { ShowDeprecationWarning(); return(GlobalLocalisation.TrySetAllowedLanguage(newDefaultLanguage)); }