private LocaleProvider(string localeFolder) { Instance = this; languageDictionary = LocaleParser.ParseLangFiles(localeFolder); }
/// <summary> /// Initialize the localization library by providing the data folder /// </summary> /// <param name="localeFolder">the folder containing all the localization files</param> /// <returns>An instance of the <see cref="LocaleProvider"/>, also accessible by <see cref="Instance"/></returns> public static LocaleProvider Initialize(string localeFolder) { return(Instance = new LocaleProvider(localeFolder)); }