public Boolean AddSupportedCulture([NotNull] CultureInfo info, [CanBeNull] ISubLocalization config) { if (info is null) { throw new ArgumentNullException(nameof(info)); } if (!Supported.TryAdd(info, config)) { return(false); } SupportedLanguagesChanged?.Invoke(); return(true); }
public static Boolean AddSupportedCulture([NotNull] CultureInfo info, [CanBeNull] ISubLocalization localization) { return(Current.AddSupportedCulture(info, localization)); }