jsakamoto / Toolbelt.Blazor.I18nText

The class library that provides the ability to localize texts on your Blazor app!
Mozilla Public License 2.0
247 stars 25 forks source link

Allow configure the json file name and location #30

Open Gambero81 opened 4 years ago

Gambero81 commented 4 years ago

It would be great to be able to allow configure the json file name and location to allow split json translation for components.

Example of component file structure:

Components\Component.razor //<- component page Components\Component.razor.cs //<- component code behind Components\Component.razor.scss //<- component style Components\Component.razor.en //<- component dictionary for english language Components\Component.razor.it // <- component dictionary for italian language

This structure allow to visual studio to apply automatic neasting:

Component.razor |-- Component.razor.cs |-- Component.razor.scss |-- Component.razor.en |-- Component.razor.it

Actually i have created multiple json file inside i18nText folder, but it's not a very well maintenable solution because files are all inside a single folder and cannot reply the structure above.