aksoftware98 / multilanguages

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 #47

Closed bmol118 closed 4 weeks ago

bmol118 commented 1 year ago

I have an application with Blazor Server and was wondering if it is possible to get all of the available languages from the ILanguageContainerService? This is more of just a nice to have as it reduces the amount of effort required when adding an additional language, but it is still easy enough to just add a new option when adding a language.

Specifically, I want to do something like:

  <InputSelect @bind-Value=SelectedLanguage >
      @foreach(var registeredLanguage in languageContainer.RegisteredLanguages)
      {
          <option value=@registeredLanguage.CultureInfo>@registeredLanguage.Language</option>
      }
  </InputSelect>
aksoftware98 commented 1 year ago

Hi @bmol118

Thank you so much for reaching out and using AKSoftware.Localization.MultiLanguages

That's a very good idea, I will proceed with it to be released in v6.0

Are you using the library currently? If yes, can you provide some kind of review of it please, and what do you think about it?

Thanks, Ahmad