mirror of
https://github.com/MewoLab/AquaDX.git
synced 2026-02-06 22:57:28 +08:00
15 lines
383 B
C#
15 lines
383 B
C#
using System;
|
|
using AquaMai.Config.Interfaces;
|
|
|
|
namespace AquaMai.Config.Attributes;
|
|
|
|
public record ConfigComment(string CommentEn, string CommentZh) : IConfigComment
|
|
{
|
|
public string GetLocalized(string lang) => lang switch
|
|
{
|
|
"en" => CommentEn ?? "",
|
|
"zh" => CommentZh ?? "",
|
|
_ => throw new ArgumentException($"Unsupported language: {lang}")
|
|
};
|
|
}
|