-
Notifications
You must be signed in to change notification settings - Fork 4
Description
Hello,
I'm opening this issue simply because I have no other way of contacting you - you may delete this in the future, if it becomes obsolete.
I've been looking at different solutions for using GetText .po
files within .NET projects and your solutions seem to be the most solid. A combination of your Karambolo.PO
library, the text extraction tool and custom string localizers contained in this repository allow for a full-circle implementation of i18n through .po
files -- extract texts, generate .po
files, read localized strings from .po
files through .NET Core built-in facilities.
While testing your approach, I've stumbled on a few questions and I was wondering if you'd be interested in addressing them:
- Would you be interested in releasing the
POTools
project (now contained in this repo) as a separate repository, which could be publicly published on NuGet and thus easily available to be included in different kinds of projects as a .NET CLI Tool? - When extracting strings to be localized from
.cs
and.cshtml
, is there a good reason why you're matching the strings based on the member name (T["Some string"]
) instead of matching them based on the type of the member (IStringLocalizer
)? Would that impact performance, or was that simply an arbitrary decision to do it that way? - When scanning files from which strings are extracted, without any special handling (something like
scan | grep | extract
),/bin/
files are taken into account, which is usually not desirable. Would it make sense to have an option to exclude certain directories within the specified path, or maybe even ignore the obvious directories likebin
andobj
?
I am posing these questions because I'm interested in building a solution that I can use throughout my different projects. I'm willing to contribute and invest some time into this, in order to find a universal solution that I can use long-term.