mirror of
https://github.com/AtomUI/AtomUI.git
synced 2026-10-19 23:30:44 +08:00
15 lines
385 B
C#
15 lines
385 B
C#
using AtomUI.Generated.Module;
|
|
using AtomUI;
|
|
|
|
namespace Acme.LocalizationComponent;
|
|
|
|
public static class ModuleLanguageExtensions
|
|
{
|
|
public static IAtomUIBuilder UseLocalizationComponent(this IAtomUIBuilder builder)
|
|
{
|
|
ArgumentNullException.ThrowIfNull(builder);
|
|
GeneratedLanguageModuleRegistration.Register(builder.Localization);
|
|
return builder;
|
|
}
|
|
}
|