mirror of
https://github.com/goatcorp/Dalamud.git
synced 2025-12-12 10:17:22 +01:00
add LocExporter tool for CI
This commit is contained in:
parent
34ce948bc6
commit
7d77f84fdb
2 changed files with 28 additions and 0 deletions
18
tools/Dalamud.LocExporter/Dalamud.LocExporter.csproj
Normal file
18
tools/Dalamud.LocExporter/Dalamud.LocExporter.csproj
Normal 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>
|
||||
10
tools/Dalamud.LocExporter/Program.cs
Normal file
10
tools/Dalamud.LocExporter/Program.cs
Normal 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!");
|
||||
Loading…
Add table
Add a link
Reference in a new issue