Skip to content
This repository has been archived by the owner on Oct 13, 2024. It is now read-only.

Commit

Permalink
build(i18n): move Locale directory and use AspNetCore framework (#258)
Browse files Browse the repository at this point in the history
  • Loading branch information
ReenigneArcher authored Mar 24, 2024
1 parent 9965542 commit 76b0126
Show file tree
Hide file tree
Showing 14 changed files with 7 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,6 @@
<ProjectReference Include="..\Jellyfin.Plugin.Themerr\Jellyfin.Plugin.Themerr.csproj" />
</ItemGroup>

<ItemGroup>
<EmbeddedResource Include="..\Jellyfin.Plugin.ThemerrLocale\**" />
</ItemGroup>

<ItemGroup>
<None Update="data\**">
<CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
Expand Down
6 changes: 4 additions & 2 deletions Jellyfin.Plugin.Themerr/Jellyfin.Plugin.Themerr.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
</PropertyGroup>

<ItemGroup>
<FrameworkReference Include="Microsoft.AspNetCore.App" />
<PackageReference Include="Jellyfin.Controller" Version="10.8.13" />
<PackageReference Include="Microsoft.AspNetCore.Mvc" Version="2.2.0" />
<PackageReference Include="Newtonsoft.Json" Version="13.0.3" />
<PackageReference Include="YoutubeExplode" Version="6.3.12" />
</ItemGroup>
Expand All @@ -21,7 +21,9 @@
</ItemGroup>

<ItemGroup>
<EmbeddedResource Include="Locale\**" />
<EmbeddedResource Include="..\Locale\*.json">
<LogicalName>Jellyfin.Plugin.Themerr.Locale.%(Filename)%(Extension)</LogicalName>
</EmbeddedResource>
</ItemGroup>

<ItemGroup>
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions crowdin.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@

"files": [
{
"source": "/Jellyfin.Plugin.Themerr/Locale/en.json",
"source": "/Locale/en.json",
"dest": "/themerr-jellyfin.json",
"translation": "/Jellyfin.Plugin.Themerr/Locale/%two_letters_code%.%file_extension%",
"translation": "/Locale/%two_letters_code%.%file_extension%",
"update_option": "update_as_unapproved"
}
]
2 changes: 1 addition & 1 deletion docs/source/contributing/localization.rst
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ The implementation uses a JSON key-value pair to map the strings to their respec

The following is a simple example of how to use it.

- Add the string to `Jellyfin.Plugin.Themerr/Locale/en.json`, in English.
- Add the string to `Locale/en.json`, in English.
.. code-block:: json
{
Expand Down

0 comments on commit 76b0126

Please sign in to comment.