Skip to content

Commit

Permalink
Refactor Localization for AmazTool
Browse files Browse the repository at this point in the history
  • Loading branch information
2dust committed Nov 23, 2024
1 parent a6dc801 commit 5e0c284
Show file tree
Hide file tree
Showing 9 changed files with 504 additions and 98 deletions.
14 changes: 12 additions & 2 deletions v2rayN/AmazTool/AmazTool.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,18 @@
</PropertyGroup>

<ItemGroup>
<EmbeddedResource Include="Assets\en-US.json" />
<EmbeddedResource Include="Assets\zh-CN.json" />
<Compile Update="Resx\Resource.Designer.cs">
<DesignTime>True</DesignTime>
<AutoGen>True</AutoGen>
<DependentUpon>Resource.resx</DependentUpon>
</Compile>
</ItemGroup>

<ItemGroup>
<EmbeddedResource Update="Resx\Resource.resx">
<Generator>ResXFileCodeGenerator</Generator>
<LastGenOutput>Resource.Designer.cs</LastGenOutput>
</EmbeddedResource>
</ItemGroup>

</Project>
14 changes: 0 additions & 14 deletions v2rayN/AmazTool/Assets/en-US.json

This file was deleted.

14 changes: 0 additions & 14 deletions v2rayN/AmazTool/Assets/zh-CN.json

This file was deleted.

59 changes: 0 additions & 59 deletions v2rayN/AmazTool/LocalizationHelper.cs

This file was deleted.

2 changes: 1 addition & 1 deletion v2rayN/AmazTool/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ private static void Main(string[] args)
{
if (args.Length == 0)
{
Console.WriteLine(LocalizationHelper.GetLocalizedValue("Guidelines"));
Console.WriteLine(Resx.Resource.Guidelines);
Thread.Sleep(5000);
return;
}
Expand Down
171 changes: 171 additions & 0 deletions v2rayN/AmazTool/Resx/Resource.Designer.cs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 5e0c284

Please sign in to comment.