diff options
author | Jesse Plamondon-Willard <Pathoschild@users.noreply.github.com> | 2020-09-07 13:06:27 -0400 |
---|---|---|
committer | Jesse Plamondon-Willard <Pathoschild@users.noreply.github.com> | 2020-09-07 13:06:27 -0400 |
commit | 5e43bdbf5cd6dbab36c25287c85d42ccfeea2c83 (patch) | |
tree | 0a42305174eb84561a584549cd685c5e95670f36 /src/SMAPI/Framework/ModHelpers/TranslationHelper.cs | |
parent | 8da88b8fe5b41739c5cd0df3280b9770fc7f10a4 (diff) | |
parent | f9fac11028354f15d786d5b854608edb10716f79 (diff) | |
download | SMAPI-5e43bdbf5cd6dbab36c25287c85d42ccfeea2c83.tar.gz SMAPI-5e43bdbf5cd6dbab36c25287c85d42ccfeea2c83.tar.bz2 SMAPI-5e43bdbf5cd6dbab36c25287c85d42ccfeea2c83.zip |
Merge branch 'develop' into stable
Diffstat (limited to 'src/SMAPI/Framework/ModHelpers/TranslationHelper.cs')
-rw-r--r-- | src/SMAPI/Framework/ModHelpers/TranslationHelper.cs | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/src/SMAPI/Framework/ModHelpers/TranslationHelper.cs b/src/SMAPI/Framework/ModHelpers/TranslationHelper.cs index be7768e8..a88ca9c9 100644 --- a/src/SMAPI/Framework/ModHelpers/TranslationHelper.cs +++ b/src/SMAPI/Framework/ModHelpers/TranslationHelper.cs @@ -16,10 +16,10 @@ namespace StardewModdingAPI.Framework.ModHelpers /********* ** Accessors *********/ - /// <summary>The current locale.</summary> + /// <inheritdoc /> public string Locale => this.Translator.Locale; - /// <summary>The game's current language code.</summary> + /// <inheritdoc /> public LocalizedContentManager.LanguageCode LocaleEnum => this.Translator.LocaleEnum; @@ -37,22 +37,19 @@ namespace StardewModdingAPI.Framework.ModHelpers this.Translator.SetLocale(locale, languageCode); } - /// <summary>Get all translations for the current locale.</summary> + /// <inheritdoc /> public IEnumerable<Translation> GetTranslations() { return this.Translator.GetTranslations(); } - /// <summary>Get a translation for the current locale.</summary> - /// <param name="key">The translation key.</param> + /// <inheritdoc /> public Translation Get(string key) { return this.Translator.Get(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> + /// <inheritdoc /> public Translation Get(string key, object tokens) { return this.Translator.Get(key, tokens); |