mirror of
https://github.com/TomasiDeveloping/PlayerManagement.git
synced 2026-04-16 09:12:20 +00:00
18 lines
489 B
C#
18 lines
489 B
C#
using Application.Interfaces;
|
|
|
|
namespace Application.Helpers.Email;
|
|
|
|
public static class EmailTemplateFactory
|
|
{
|
|
public static IEmailTemplate GetEmailTemplate(string languageCode)
|
|
{
|
|
return languageCode switch
|
|
{
|
|
"en" => new EnglishEmailTemplate(),
|
|
"de" => new GermanEmailTemplate(),
|
|
"fr" => new FrenchEmailTemplate(),
|
|
"it" => new ItalianEmailTemplate(),
|
|
_ => new EnglishEmailTemplate()
|
|
};
|
|
}
|
|
} |