public static ResourceDictionary ResolveOne(CultureInfo cultureInfo, string resourceName = "") { var culture = cultureInfo.TwoLetterISOLanguageName; ResourceDictionary dictionary; switch (culture) { case "ja": dictionary = Locale.Context(resourceName); break; case "de": dictionary = German.Locale.Context(resourceName); break; case "fr": dictionary = French.Locale.Context(resourceName); break; default: dictionary = English.Locale.Context(resourceName); break; } return(dictionary); }