Esempio n. 1
0
            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);
            }
Esempio n. 2
0
 public static Boolean AddSupportedCulture([NotNull] CultureInfo info, [CanBeNull] ISubLocalization localization)
 {
     return(Current.AddSupportedCulture(info, localization));
 }