'Is there a tool that finds strings in XAML to localize?

I am needing to localize an existing app written in C# with WPF/XAML. I have found the Rgreatex plugin to Resharper that helps find and move strings found in C# to resource files. But, it only works with *.cs files. Does anyone know of a tool that helps find localizable strings in XAML?



Solution 1:[1]

You can use the LocBaml tool to do much of this. I'd recommend reading the WPF Globalization and Localization section on MSDN, since this is usually done a bit differently in WPF than it was in Windows Forms.

Solution 2:[2]

I know this reply is pretty late but Soluling can localize XAML files and WPF applications. It uses scan rules to identify what elements in the XAML files are extracted, provides an UI to translate them and finally creates the localized XAML files. Soluling goes even further and compiles the localized XAML files into binary format (BAML) and then creates localized satellite assemblys files that contain the localized XAML, ResX and other resources.

You don't have to specify every XAML file but only the project file(s) (.csproj/.vbproj) or the solution file (.sln),

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Reed Copsey
Solution 2 Jaska