LazZiya / XLocalizer

Localizer package for Asp.Net Core web applications, powered by online translation and auto resource creating.
https://docs.ziyad.info
129 stars 14 forks source link

Failed to find out ResourcesPath when hosted in linux #9

Closed andreykrivoshapov closed 3 years ago

andreykrivoshapov commented 3 years ago

Thanks for the great job.

Just found small issue: the ResourcesPath folder is not found when app is hosted in linux docker container. It creates new files with name like ".\LocalizationResources\LocSource.ru.xml" every time and ignore files that exists in "LocalizationResources" folder.

The problem is on this line: https://github.com/LazZiya/XLocalizer/blob/master/XLocalizer/Xml/XmlResourceProvider.cs#L41

It works only on windows now.

image

LazZiya commented 3 years ago

Hi @andreykrivoshapov ,

Thank you too for opening this issue, I will try to reproduce and fix it, it may take some time due to year end and being busy with formal business.

Meanwhile, any contributions to solve it earlier are welcome :)

andreykrivoshapov commented 3 years ago

Not sure that I prepared Pull Request right :). But it is here: https://github.com/LazZiya/XLocalizer/pull/12

LazZiya commented 3 years ago

Thank you @andreykrivoshapov, I will review the PR asap 👍🏼