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

Not working with error There is no language files existing in the Resource folder #7

Closed AmirImam closed 4 years ago

AmirImam commented 4 years ago

Hi, Thanks for this great tool There is a problem that suddenly appeared. The app stopped and shows error "There is no language files existing in the Resource folder within 'MY_APP' assembly" After install NuGet package of this tool I have added service like that builder.Services.AddLanguageContainer(Assembly.GetExecutingAssembly(), CultureInfo.GetCultureInfo("ar-EG")); Than in component [Inject] public ILanguageContainerService Localizer { get; set; }

And I wrote languages YML files like that en-US.yml

Home:Home
Administration:Administration

ar-eg.yml

Home:الرئيسية
Administration:الإدارة العامة
aksoftware98 commented 4 years ago

Thanks dear for reaching

The issue related to desereralize of the YAML files there is should be a space between the and values in your language file like this

Home: Home Administration: Administration

Home: الرئيسية Administration: الإدارة العامة

This will solve this issue

Thanks for using AKSoftware.Localization