Skip to content

Instantly share code, notes, and snippets.

@monoman
Last active August 29, 2015 14:23
TranslatableStrings aims to enable Roslyn to again be at peace with resources or any other translation mechanism when using string interpolation
var person="David";
Console.WriteLine($_"Hello {person}");
// Prints "Alô David" in pt-BR
Console.WriteLine($"Hello {person}");
// Prints "Hello David" in pt-BR
@monoman
Copy link
Author

monoman commented Jun 19, 2015

The compiler would have a command line option similar to that of xml documentation to extract all translatable strings either to a resx file (maybe using sha256 to generate identifiers), or to gettext-like string tables to be used with some other tooling.

My experimental implementatiion will use Managed.Commons.Core Translation interfaces/proxy to abstract the specific translation engine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment