Skip to content

Commit 1862b81

Browse files
committed
Unbreak
1 parent baaed13 commit 1862b81

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/Umbraco.Infrastructure/Services/Implement/LocalizedTextService.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,12 @@ public LocalizedTextService(IDictionary<CultureInfo, Lazy<XDocument>> source,
109109
XmlSourceToNoAreaDictionary(source));
110110
}
111111

112+
[Obsolete("Use other ctor with IDictionary<CultureInfo, Lazy<IDictionary<string, IDictionary<string, string>>>> as input parameter.")]
113+
public LocalizedTextService(IDictionary<CultureInfo, IDictionary<string, IDictionary<string, string>>> source,
114+
ILogger<LocalizedTextService> logger) : this(source.ToDictionary(x=>x.Key, x=> new Lazy<IDictionary<string, IDictionary<string, string>>>(() => x.Value)), logger)
115+
{
112116

117+
}
113118
/// <summary>
114119
/// Initializes with a source of a dictionary of culture -> areas -> sub dictionary of keys/values
115120
/// </summary>

0 commit comments

Comments
 (0)