Beispiel #1
0
        /// <summary>
        /// Reads the Languages from the <param name="path">file path</param>
        /// </summary>
        /// <param name="path">The full path to the excel file where the languages are located</param>
        /// <param name="reset">Resets the default languages</param>
        /// <returns>Returns a list of Languages</returns>
        public List <MappedLanguage> GetMappedLanguages(string path, bool reset = false)
        {
            var common = new Implementation.Common();

            if (reset)
            {
                common.SaveDefaultLanguagesDocument(path);
            }

            var reader    = new Reader(common);
            var languages = GetLanguages(reader.ReadLanguages(path));

            return(languages);
        }