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
14
forks
source link
Fix LanguageContainer Constructor order + Retrieving LanguageFileName exception on empty culture (Ubuntu) #28
Some fixes for minor issues I ran into while attempting to run my Blazor web project using the Multilanguage library in Ubuntu (WSL/Docker):
Fix the order of the LanguageContainer constructors (the base Constructor gets called before the derived one does).
On Ubuntu (WSL/Docker) the CultureInfo.CurrentCulture seems to be empty by default, resulting in an exception in the GetKeys method of the GetKeysProvider. The SingleOrDefault on line 32 threw an exception, because the SingleOrDefault expression resulted in retrieving all the yml language files.
Some fixes for minor issues I ran into while attempting to run my Blazor web project using the Multilanguage library in Ubuntu (WSL/Docker):