public void AddResource(string key, Locale language, string text) { key = SanitiseKey(key); if (!TextMap.ContainsKey(key)) { TextMap.Add(key, new Dictionary <Locale, string>()); } TextMap[key][language] = text; }