diff --git a/WTT/WTT/ExportSettings.cs b/WTT/WTT/ExportSettings.cs index 35a6676..31f7fee 100644 --- a/WTT/WTT/ExportSettings.cs +++ b/WTT/WTT/ExportSettings.cs @@ -2,6 +2,11 @@ namespace WTT; public class ExportSettings { + /// + /// Export Japanese message. + /// + public bool ExportJapaneseMessage { get; set; } = true; + /// /// Export English (USA) message. /// diff --git a/WTT/WTT/TableExporter.cs b/WTT/WTT/TableExporter.cs index c0d13e3..d67ea14 100644 --- a/WTT/WTT/TableExporter.cs +++ b/WTT/WTT/TableExporter.cs @@ -32,7 +32,8 @@ public class TableExporter { var tomlTable = new TomlTable(); - tomlTable.AddMessage(entry, 0, "JapaneseMessage"); + if (_settings.ExportJapaneseMessage) + tomlTable.AddMessage(entry, 0, "JapaneseMessage"); if (_settings.ExportEnglishUSAMessage) tomlTable.AddMessage(entry, 1, "EnglishMessageUSA"); if (_settings.ExportEnglishSGMessage) @@ -53,7 +54,8 @@ public class TableExporter { var tomlTable = new TomlTable(); - tomlTable.AddMessage(entry, 3, "JapaneseMessage"); + if (_settings.ExportJapaneseMessage) + tomlTable.AddMessage(entry, 3, "JapaneseMessage"); if (_settings.ExportEnglishUSAMessage) tomlTable.AddMessage(entry, 4, "EnglishMessageUSA"); if (_settings.ExportEnglishSGMessage)