diff options
Diffstat (limited to 'src/StardewModdingAPI/Framework/TranslationHelper.cs')
-rw-r--r-- | src/StardewModdingAPI/Framework/TranslationHelper.cs | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/StardewModdingAPI/Framework/TranslationHelper.cs b/src/StardewModdingAPI/Framework/TranslationHelper.cs index ebcd69b1..e4a178e2 100644 --- a/src/StardewModdingAPI/Framework/TranslationHelper.cs +++ b/src/StardewModdingAPI/Framework/TranslationHelper.cs @@ -29,10 +29,6 @@ namespace StardewModdingAPI.Framework /// <summary>The game's current language code.</summary> public LocalizedContentManager.LanguageCode LocaleEnum { get; private set; } - /// <summary>Get a translation for the current locale. This is a convenience shortcut for <see cref="ITranslationHelper.Translate"/>.</summary> - /// <param name="key">The translation key.</param> - public Translation this[string key] => this.Translate(key); - /********* ** Public methods @@ -58,7 +54,7 @@ namespace StardewModdingAPI.Framework /// <summary>Get a translation for the current locale.</summary> /// <param name="key">The translation key.</param> - public Translation Translate(string key) + public Translation Get(string key) { this.ForLocale.TryGetValue(key, out string text); return new Translation(this.ModName, this.Locale, key, text); |