From 80dee2f3cc77a8f03aac153bd4868b175446a870 Mon Sep 17 00:00:00 2001 From: Damien Date: Tue, 23 Apr 2024 21:28:34 +0200 Subject: [PATCH] =?UTF-8?q?[JS]=20Fix=20g=C3=A9n=C3=A9ration=20commentaire?= =?UTF-8?q?s=20en=20translateProperties=20=3D=20true?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../TypescriptDefinitionGenerator.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/TopModel.Generator.Javascript/TypescriptDefinitionGenerator.cs b/TopModel.Generator.Javascript/TypescriptDefinitionGenerator.cs index 1bd043e0..0514bc8a 100644 --- a/TopModel.Generator.Javascript/TypescriptDefinitionGenerator.cs +++ b/TopModel.Generator.Javascript/TypescriptDefinitionGenerator.cs @@ -209,11 +209,11 @@ protected override void HandleClass(string fileName, Class classe, string tag) { if (Config.TranslateProperties == true) { - fw.WriteLine($" comment: \"{field.Comment}\""); + fw.WriteLine($" comment: \"{field.CommentResourceKey}\""); } else { - fw.WriteLine($" comment: \"{field.CommentResourceKey}\""); + fw.WriteLine($" comment: \"{field.Comment}\""); } } }