1
0
mirror of https://github.com/Sonarr/Sonarr.git synced 2026-04-22 22:16:13 -04:00

New: Add UI Localization Framework

This commit is contained in:
Michael Casey
2021-08-10 07:13:33 +10:00
committed by Mark McDowall
parent 1977f4aa3c
commit 5938a95abb
17 changed files with 557 additions and 71 deletions
+4 -2
View File
@@ -1,4 +1,4 @@
using NzbDrone.Core.Configuration;
using NzbDrone.Core.Configuration;
using Sonarr.Http.REST;
namespace Sonarr.Api.V3.Config
@@ -17,6 +17,7 @@ namespace Sonarr.Api.V3.Config
public bool EnableColorImpairedMode { get; set; }
public string Theme { get; set; }
public int UILanguage { get; set; }
}
public static class UiConfigResourceMapper
@@ -34,7 +35,8 @@ namespace Sonarr.Api.V3.Config
ShowRelativeDates = model.ShowRelativeDates,
EnableColorImpairedMode = model.EnableColorImpairedMode,
Theme = config.Theme
Theme = config.Theme,
UILanguage = model.UILanguage
};
}
}