diff --git a/docs/release-notes.md b/docs/release-notes.md index ee18eba9..155ca80b 100644 --- a/docs/release-notes.md +++ b/docs/release-notes.md @@ -6,6 +6,9 @@ * Improved content load performance for non-English players. * Fixed some community shortcuts breaking if a mod edited the map which contains them. +* For mod authors: + * You can now have an `en.json` translation file which overrides `default.json`. + * For the web UI: * Improved JSON parser: * You can now hover/click braces to highlight matching pairs. diff --git a/src/SMAPI/Framework/Translator.cs b/src/SMAPI/Framework/Translator.cs index 406a3647..c4dce8fa 100644 --- a/src/SMAPI/Framework/Translator.cs +++ b/src/SMAPI/Framework/Translator.cs @@ -165,6 +165,10 @@ internal class Translator /// The locale for which to find valid locales. private IEnumerable GetRelevantLocales(string locale) { + // special case: the game's locale code for English is an empty string, but we still want to allow 'en' as a locale + if (locale == string.Empty) + locale = "en"; + // given locale yield return locale;