AKSoftware.Localization.MultiLanguages is a package for .NET developers allows them to easily build apps target multiple languages with just few lines of code
MIT License
85
stars
15
forks
source link
Dynamically List Available languages : Selution #54
create
AddLanguageContainerSupportService.cs
inside your project then replase every thing inside the class with next codein
Program.cs
file afterbuilder.Services.AddLanguageContainerForBlazorServer<EmbeddedResourceKeysProvider>(Assembly.GetExecutingAssembly(), "Resources");
add
builder.Services.AddAddLanguageContainerSupport(Assembly.GetExecutingAssembly());
then in your Combonent add
by call
LanguageContainerSupport.GetSupportedCultures()
you will getList<CultureInfo>
of all available Languages