LazZiya / XLocalizer

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

Failed to find out ResourcesPath when hosted in linux #12

Closed andreykrivoshapov closed 3 years ago

LazZiya commented 3 years ago

Hi @andreykrivoshapov , your modification is correct, but I suggest to use another solution that provides the best compatibility with different systems.

Instead of hard coding the directory separator char /, we can use Path.DirectorySeparatorChar as below:

return $"{_options.ResourcesPath}{Path.DirectorySeparatorChar}{typeName}.{{0}}.xml";
LazZiya commented 3 years ago

fix provided with vNext update under 9647936e

Thanks, Ziya