summaryrefslogtreecommitdiff
path: root/src/SMAPI/Framework/ModHelpers
diff options
context:
space:
mode:
authorJesse Plamondon-Willard <Pathoschild@users.noreply.github.com>2021-08-15 01:25:56 -0400
committerJesse Plamondon-Willard <Pathoschild@users.noreply.github.com>2021-08-25 18:17:09 -0400
commit6cf7c49f34eac8edd18012d41d1f49a149fb1f5a (patch)
tree1e2b911c730acd643baae7493d5e7f938c014e87 /src/SMAPI/Framework/ModHelpers
parenta4c6c6168405bb0441a40e4f6f4e86dfa46a76b2 (diff)
downloadSMAPI-6cf7c49f34eac8edd18012d41d1f49a149fb1f5a.tar.gz
SMAPI-6cf7c49f34eac8edd18012d41d1f49a149fb1f5a.tar.bz2
SMAPI-6cf7c49f34eac8edd18012d41d1f49a149fb1f5a.zip
add GetInAllLocales to translation API
Diffstat (limited to 'src/SMAPI/Framework/ModHelpers')
-rw-r--r--src/SMAPI/Framework/ModHelpers/TranslationHelper.cs6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/SMAPI/Framework/ModHelpers/TranslationHelper.cs b/src/SMAPI/Framework/ModHelpers/TranslationHelper.cs
index a88ca9c9..869664fe 100644
--- a/src/SMAPI/Framework/ModHelpers/TranslationHelper.cs
+++ b/src/SMAPI/Framework/ModHelpers/TranslationHelper.cs
@@ -55,6 +55,12 @@ namespace StardewModdingAPI.Framework.ModHelpers
return this.Translator.Get(key, tokens);
}
+ /// <inheritdoc />
+ public IDictionary<string, Translation> GetInAllLocales(string key, bool withFallback = false)
+ {
+ return this.Translator.GetInAllLocales(key, withFallback);
+ }
+
/// <summary>Set the translations to use.</summary>
/// <param name="translations">The translations to use.</param>
internal TranslationHelper SetTranslations(IDictionary<string, IDictionary<string, string>> translations)