-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
37 changed files
with
278 additions
and
613 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 4 additions & 9 deletions
13
Lombiq.Hosting.Tenants.EmailQuotaManagement/Services/EmailQuotaSubjectService.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,12 @@ | ||
using Microsoft.Extensions.Localization; | ||
using Microsoft.Extensions.Localization; | ||
|
||
namespace Lombiq.Hosting.Tenants.EmailQuotaManagement.Services; | ||
|
||
public class EmailQuotaSubjectService : IEmailQuotaSubjectService | ||
public class EmailQuotaSubjectService(IStringLocalizer<EmailQuotaSubjectService> stringLocalizer) : IEmailQuotaSubjectService | ||
{ | ||
private readonly IStringLocalizer<EmailQuotaSubjectService> T; | ||
|
||
public EmailQuotaSubjectService(IStringLocalizer<EmailQuotaSubjectService> stringLocalizer) => | ||
T = stringLocalizer; | ||
|
||
public LocalizedString GetWarningEmailSubject(int percentage) => | ||
T["[Warning] Your site has used {0}% of its e-mail quota", percentage]; | ||
stringLocalizer["[Warning] Your site has used {0}% of its e-mail quota", percentage]; | ||
|
||
public LocalizedString GetExceededEmailSubject() => | ||
T["[Action Required] Your site has run over its e-mail quota"]; | ||
stringLocalizer["[Action Required] Your site has run over its e-mail quota"]; | ||
} |
Oops, something went wrong.