コード例 #1
0
        private static void Loc_MissingTranslationFound(object sender, LocalizationMissingTranslationEventArgs e)
        {
            var serializer = new SerializerBuilder().Build();
            var yaml       = serializer.Serialize(e.MissingTranslations);

            File.WriteAllText(MissingTranslationsFileName, yaml);
        }
コード例 #2
0
 private static void Loc_MissingTranslationFound(object sender, LocalizationMissingTranslationEventArgs e)
 {
     File.WriteAllText(MissingTranslationsFileName,
                       JsonConvert.SerializeObject(e.MissingTranslations, Formatting.Indented));
 }