public static ResourceDictionary getLocale(LocalesSource type = LocalesSource.Default)
 {
     return(new ResourceDictionary
     {
         Source = new Uri(LOCALE_FILE_STRING + Configurator.getLanguage() +
                          TypeToValueAssoc[(int)type] + ".xaml", UriKind.Relative)
     });
 }
        public static string getValueForKey(string key, LocalesSource type = LocalesSource.Default)
        {
            ResourceDictionary resourceLocalization = new ResourceDictionary
            {
                Source = new Uri(LOCALE_FILE_STRING + Configurator.getLanguage() +
                                 TypeToValueAssoc[(int)type] + ".xaml", UriKind.Relative)
            };

            return(resourceLocalization[key] as string);
        }