summaryrefslogtreecommitdiff
path: root/build/common.targets
diff options
context:
space:
mode:
authorJesse Plamondon-Willard <Pathoschild@users.noreply.github.com>2019-10-01 21:27:49 -0400
committerJesse Plamondon-Willard <Pathoschild@users.noreply.github.com>2019-10-01 21:27:49 -0400
commit845deb43d60147603ec31fe4ae5fd7d747556d8c (patch)
tree2d96293aef515147b5ca1cd2440f268f886ae6be /build/common.targets
parent673510b3941dd35a127e4f4a8a406f34b72b6a66 (diff)
downloadSMAPI-845deb43d60147603ec31fe4ae5fd7d747556d8c.tar.gz
SMAPI-845deb43d60147603ec31fe4ae5fd7d747556d8c.tar.bz2
SMAPI-845deb43d60147603ec31fe4ae5fd7d747556d8c.zip
add support for core translation files
Diffstat (limited to 'build/common.targets')
-rw-r--r--build/common.targets5
1 files changed, 5 insertions, 0 deletions
diff --git a/build/common.targets b/build/common.targets
index eb92cddd..10cdbe2c 100644
--- a/build/common.targets
+++ b/build/common.targets
@@ -21,6 +21,10 @@
<CallTarget Targets="CopySMAPI;CopyDefaultMods" />
</Target>
<Target Name="CopySMAPI" Condition="'$(MSBuildProjectName)' == 'SMAPI'">
+ <ItemGroup>
+ <TranslationFiles Include="$(TargetDir)\i18n\*.json" />
+ </ItemGroup>
+
<Copy SourceFiles="$(TargetDir)\$(TargetName).exe" DestinationFolder="$(GamePath)" />
<Copy SourceFiles="$(TargetDir)\$(TargetName).pdb" DestinationFolder="$(GamePath)" />
<Copy SourceFiles="$(TargetDir)\$(TargetName).xml" DestinationFolder="$(GamePath)" />
@@ -29,6 +33,7 @@
<Copy SourceFiles="$(TargetDir)\0Harmony.dll" DestinationFolder="$(GamePath)\smapi-internal" />
<Copy SourceFiles="$(TargetDir)\Newtonsoft.Json.dll" DestinationFolder="$(GamePath)\smapi-internal" />
<Copy SourceFiles="$(TargetDir)\Mono.Cecil.dll" DestinationFolder="$(GamePath)\smapi-internal" />
+ <Copy SourceFiles="@(TranslationFiles)" DestinationFolder="$(GamePath)\smapi-internal\i18n" />
</Target>
<Target Name="CopyDefaultMods" Condition="'$(MSBuildProjectName)' == 'SMAPI.Mods.ConsoleCommands' OR '$(MSBuildProjectName)' == 'SMAPI.Mods.SaveBackup'">
<Copy SourceFiles="$(TargetDir)\$(TargetName).dll" DestinationFolder="$(GamePath)\Mods\$(AssemblyName)" />