From 90275f1d56a6d74f93021d9b15a742f381ec4bfd Mon Sep 17 00:00:00 2001 From: Jesse Plamondon-Willard Date: Sun, 28 May 2017 17:53:44 -0400 Subject: add shortcut for translation with tokens (#296) --- src/StardewModdingAPI/ITranslationHelper.cs | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/StardewModdingAPI/ITranslationHelper.cs') diff --git a/src/StardewModdingAPI/ITranslationHelper.cs b/src/StardewModdingAPI/ITranslationHelper.cs index 23980a1b..15f6b3c8 100644 --- a/src/StardewModdingAPI/ITranslationHelper.cs +++ b/src/StardewModdingAPI/ITranslationHelper.cs @@ -25,5 +25,10 @@ namespace StardewModdingAPI /// Get a translation for the current locale. /// The translation key. Translation Get(string key); + + /// Get a translation for the current locale. + /// The translation key. + /// An object containing token key/value pairs. This can be an anonymous object (like new { value = 42, name = "Cranberries" }), a dictionary, or a class instance. + Translation Get(string key, object tokens); } } -- cgit