2using System.Collections.Generic;
3using Terraria.Localization;
10 public readonly
string Key;
14 if (key.Contains(
" "))
15 throw new Exception(
"ModTranslation keys can't contain spaces.");
17 this.translations =
new Dictionary<int, string>();
18 this.translations[
fallback] = defaultEmpty ? null : key;
void SetDefault(string value)
void AddTranslation(int culture, string value)
string GetTranslation(GameCulture culture)
Dictionary< int, string > translations
string GetTranslation(string culture)
string GetTranslation(int culture)
void AddTranslation(GameCulture culture, string value)
void AddTranslation(string culture, string value)