Add translator to poyo
This commit is contained in:
@@ -121,4 +121,14 @@ foreach (var letter in Alphabet.BaseAlphabet)
|
||||
|
||||
await File.WriteAllTextAsync("dictionary.json", JsonSerializer.Serialize(dictionary, jsonOptions));
|
||||
|
||||
Console.WriteLine($"Dictionary written to {Path.Combine(Environment.CurrentDirectory, "dictionary.json")}");
|
||||
Console.WriteLine($"Dictionary written to {Path.Combine(Environment.CurrentDirectory, "dictionary.json")}");
|
||||
|
||||
// Also write in simple custom format for source generator
|
||||
await using var customOutput = File.CreateText("dictionary.txt");
|
||||
|
||||
foreach (var pair in dictionary)
|
||||
{
|
||||
await customOutput.WriteLineAsync($"{pair.Key}={pair.Value}");
|
||||
}
|
||||
|
||||
Console.WriteLine($"Custom dictionary written to {Path.Combine(Environment.CurrentDirectory, "dictionary.txt")}");
|
||||
Reference in New Issue
Block a user