diff options
author | Jesse Plamondon-Willard <Pathoschild@users.noreply.github.com> | 2021-08-15 01:25:56 -0400 |
---|---|---|
committer | Jesse Plamondon-Willard <Pathoschild@users.noreply.github.com> | 2021-08-25 18:17:09 -0400 |
commit | 6cf7c49f34eac8edd18012d41d1f49a149fb1f5a (patch) | |
tree | 1e2b911c730acd643baae7493d5e7f938c014e87 /src/SMAPI/Framework/ModHelpers | |
parent | a4c6c6168405bb0441a40e4f6f4e86dfa46a76b2 (diff) | |
download | SMAPI-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.cs | 6 |
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) |