From 7d77f84fdb9c1cba4b7af0a8d74562d95c73dcd9 Mon Sep 17 00:00:00 2001 From: goaaats Date: Fri, 29 Mar 2024 01:55:43 +0100 Subject: [PATCH] add LocExporter tool for CI --- .../Dalamud.LocExporter.csproj | 18 ++++++++++++++++++ tools/Dalamud.LocExporter/Program.cs | 10 ++++++++++ 2 files changed, 28 insertions(+) create mode 100644 tools/Dalamud.LocExporter/Dalamud.LocExporter.csproj create mode 100644 tools/Dalamud.LocExporter/Program.cs diff --git a/tools/Dalamud.LocExporter/Dalamud.LocExporter.csproj b/tools/Dalamud.LocExporter/Dalamud.LocExporter.csproj new file mode 100644 index 000000000..0e2fd0a4f --- /dev/null +++ b/tools/Dalamud.LocExporter/Dalamud.LocExporter.csproj @@ -0,0 +1,18 @@ + + + + Exe + net8.0-windows + enable + enable + + + + + + + + + + + diff --git a/tools/Dalamud.LocExporter/Program.cs b/tools/Dalamud.LocExporter/Program.cs new file mode 100644 index 000000000..f9fe8f6aa --- /dev/null +++ b/tools/Dalamud.LocExporter/Program.cs @@ -0,0 +1,10 @@ +// See https://aka.ms/new-console-template for more information + +using CheapLoc; + +Console.WriteLine("=> Starting loc export..."); + +var dalamud = typeof(Dalamud.Localization).Assembly; +Loc.ExportLocalizableForAssembly(dalamud, true); + +Console.WriteLine("=> Finished loc export!");