Quantcast
Channel: ASP.NET Core
Viewing all articles
Browse latest Browse all 9386

Extracting localizable strings from MVC 6 project

$
0
0
After I made a gettext implementation for the localization factory and such, I found myself having trouble keeping track of all the localizable strings and if someone changed one, needed to keep in mind to update the POT file too.

After some failed attempts using poedit, I decided to make my own tool. This tool uses the Razor engine and Roslyn to extract all the localizable strings from the project, regardless it being a csharp or a razor file.

Right now it only generates POT files but I plan on expanding it ... Bellow is a link to repository if anyone wants to use or see the code :)

https://www.github.com/derpcoder/StringLocalizerExtractor

Viewing all articles
Browse latest Browse all 9386

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>