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:
committed by
Mark McDowall
parent
1977f4aa3c
commit
5938a95abb
@@ -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
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user