1
0
mirror of https://github.com/Raymonf/whack.git synced 2024-11-24 00:20:10 +01:00

Make Japanese a setting

This commit is contained in:
Raymonf 2023-03-04 14:48:17 -05:00
parent 396996c4ab
commit 043b8433af
No known key found for this signature in database
GPG Key ID: 438459BF619B037A
2 changed files with 9 additions and 2 deletions

View File

@ -2,6 +2,11 @@ namespace WTT;
public class ExportSettings
{
/// <summary>
/// Export Japanese message.
/// </summary>
public bool ExportJapaneseMessage { get; set; } = true;
/// <summary>
/// Export English (USA) message.
/// </summary>

View File

@ -32,6 +32,7 @@ public class TableExporter
{
var tomlTable = new TomlTable();
if (_settings.ExportJapaneseMessage)
tomlTable.AddMessage(entry, 0, "JapaneseMessage");
if (_settings.ExportEnglishUSAMessage)
tomlTable.AddMessage(entry, 1, "EnglishMessageUSA");
@ -53,6 +54,7 @@ public class TableExporter
{
var tomlTable = new TomlTable();
if (_settings.ExportJapaneseMessage)
tomlTable.AddMessage(entry, 3, "JapaneseMessage");
if (_settings.ExportEnglishUSAMessage)
tomlTable.AddMessage(entry, 4, "EnglishMessageUSA");