feat(i18n): add Localizer with fallback chain and change event

This commit is contained in:
mika kuns
2026-06-03 11:38:49 +02:00
parent a83a0c41e8
commit d22b50e171
3 changed files with 126 additions and 0 deletions

View File

@@ -0,0 +1,13 @@
namespace ClaudeDo.Localization;
public readonly record struct LanguageOption(string Code, string Name);
public interface ILocalizer
{
string this[string key] { get; }
string Get(string key, params object[] args);
string CurrentCode { get; }
IReadOnlyList<LanguageOption> AvailableLanguages { get; }
void SetLanguage(string code);
event EventHandler? LanguageChanged;
}