public ResxFile(ITranslatable source) { _deleteOnDispose = true; Path = System.IO.Path.GetTempFileName(); using (var writer = new ResXResourceWriter(Path)) { foreach (var unit in source.GetTranslationUnits()) { HasStrings = true; writer.AddResource(new ResXDataNode(unit.Id, unit.Source) { Comment = unit.Note }); } } }