From 3b5c6086a9aee947e781dc380442244e9283261c Mon Sep 17 00:00:00 2001 From: Developer 02 Date: Wed, 11 Dec 2024 16:21:31 +0100 Subject: [PATCH] =?UTF-8?q?feat(WebKey):=20Statische=20Klasse=20Formats=20?= =?UTF-8?q?zur=20Aufnahme=20von=20Schl=C3=BCsselformaten=20hinzugef=C3=BCg?= =?UTF-8?q?t.=20=20-=20Erweiterungsmethoden=20f=C3=BCr=20die=20Formatierun?= =?UTF-8?q?g=20von=20Tastenformaten=20hinzugef=C3=BCgt.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- EnvelopeGenerator.Web/WebKey.cs | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/EnvelopeGenerator.Web/WebKey.cs b/EnvelopeGenerator.Web/WebKey.cs index 3555be45..1b8ec48f 100644 --- a/EnvelopeGenerator.Web/WebKey.cs +++ b/EnvelopeGenerator.Web/WebKey.cs @@ -42,5 +42,22 @@ public static readonly string ViewDoc = nameof(ViewDoc); public static readonly string HomePageDescription = nameof(HomePageDescription); public static readonly string Privacy = nameof(Privacy); + + public static class Formats + { + public static readonly string LockedTitle = "Locked{0}Title"; + + public static readonly string LockedBody = "Locked{0}Body"; + + public static readonly string LockedCodeLabel = "Locked{0}CodeLabel"; + + public static readonly string LockedFooterTitle = "Locked{0}FooterTitle"; + + public static readonly string LockedFooterBody = "Locked{0}FooterBody"; + } + + public static string Format(this string st, object? arg0) => string.Format(st, arg0: arg0); + + public static string Format(this string st, params object?[] args) => string.Format(st, args: args); } } \ No newline at end of file