multilanguages icon indicating copy to clipboard operation
multilanguages copied to clipboard

Dynamically List Available languages

Open bmol118 opened this issue 2 years ago • 1 comments

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 [email protected]>@registeredLanguage.Language</option>
	  }
  </InputSelect>

bmol118 avatar May 11 '23 12:05 bmol118

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

aksoftware98 avatar May 11 '23 12:05 aksoftware98