add LocExporter tool for CI

This commit is contained in:
goaaats 2024-03-29 01:55:43 +01:00
parent 34ce948bc6
commit 7d77f84fdb
2 changed files with 28 additions and 0 deletions

View file

@ -0,0 +1,18 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net8.0-windows</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
</PropertyGroup>
<ItemGroup>
<ProjectReference Include="..\..\Dalamud\Dalamud.csproj" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="CheapLoc" Version="1.1.8" />
</ItemGroup>
</Project>

View file

@ -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!");