(string lang)
| 54 | }; |
| 55 | |
| 56 | public static void SetLanguage(string lang) |
| 57 | { |
| 58 | if (!LanguageMap.ContainsKey(lang)) |
| 59 | lang = "English"; |
| 60 | |
| 61 | var dict = new ResourceDictionary(); |
| 62 | var file = LanguageMap[lang]; |
| 63 | dict.Source = new Uri($"Languages/{file}", UriKind.Relative); |
| 64 | |
| 65 | Current.Resources.MergedDictionaries.Add(dict); |
| 66 | } |
| 67 | |
| 68 | public static string GetTranslation(string key) |
| 69 | { |
nothing calls this directly
no outgoing calls
no test coverage detected