summaryrefslogtreecommitdiff
path: root/src/StardewModdingAPI/ITranslationHelper.cs
diff options
context:
space:
mode:
authorJesse Plamondon-Willard <github@jplamondonw.com>2017-05-28 17:53:44 -0400
committerJesse Plamondon-Willard <github@jplamondonw.com>2017-05-28 17:53:44 -0400
commit90275f1d56a6d74f93021d9b15a742f381ec4bfd (patch)
tree57fe089cd0cfe9cfa3c254249d23dfd653735112 /src/StardewModdingAPI/ITranslationHelper.cs
parente20db6e8e4279dc95371e6f98c0e73dd19020c0f (diff)
downloadSMAPI-90275f1d56a6d74f93021d9b15a742f381ec4bfd.tar.gz
SMAPI-90275f1d56a6d74f93021d9b15a742f381ec4bfd.tar.bz2
SMAPI-90275f1d56a6d74f93021d9b15a742f381ec4bfd.zip
add shortcut for translation with tokens (#296)
Diffstat (limited to 'src/StardewModdingAPI/ITranslationHelper.cs')
-rw-r--r--src/StardewModdingAPI/ITranslationHelper.cs5
1 files changed, 5 insertions, 0 deletions
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
/// <summary>Get a translation for the current locale.</summary>
/// <param name="key">The translation key.</param>
Translation Get(string key);
+
+ /// <summary>Get a translation for the current locale.</summary>
+ /// <param name="key">The translation key.</param>
+ /// <param name="tokens">An object containing token key/value pairs. This can be an anonymous object (like <c>new { value = 42, name = "Cranberries" }</c>), a dictionary, or a class instance.</param>
+ Translation Get(string key, object tokens);
}
}