Skip to content

Commit

Permalink
Add new properties and update translations
Browse files Browse the repository at this point in the history
Added `IsEnabled` and `JsonData` properties to `SocialLinkSettingsJsonModel` in `SocialLink.cs`. Updated `Program.de-DE.resx`, `Program.ja-JP.resx`, `Program.zh-Hans.resx`, and `Program.zh-Hant.resx` with translations for "Enable Social Links" and "Social Links".
  • Loading branch information
EdiWang committed Oct 22, 2024
1 parent ed533d1 commit 8b97446
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/Moonglade.Configuration/SocialLink.cs
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ public class SocialLink

public class SocialLinkSettingsJsonModel
{
[Display(Name = "Enable Social Links")]
public bool IsEnabled { get; set; }

[MaxLength(1024)]
Expand Down
6 changes: 6 additions & 0 deletions src/Moonglade.Web/Resources/Program.de-DE.resx
Original file line number Diff line number Diff line change
Expand Up @@ -1038,4 +1038,10 @@
<data name="Confirm" xml:space="preserve">
<value>Bestätigen</value>
</data>
<data name="Enable Social Links" xml:space="preserve">
<value>Social Linking aktivieren</value>
</data>
<data name="Social Links" xml:space="preserve">
<value>Soziale Verknüpfungen</value>
</data>
</root>
6 changes: 6 additions & 0 deletions src/Moonglade.Web/Resources/Program.ja-JP.resx
Original file line number Diff line number Diff line change
Expand Up @@ -1038,4 +1038,10 @@
<data name="Confirm" xml:space="preserve">
<value>確認する</value>
</data>
<data name="Enable Social Links" xml:space="preserve">
<value>ソーシャルリンクを有効にする</value>
</data>
<data name="Social Links" xml:space="preserve">
<value>ソーシャルリンク</value>
</data>
</root>
6 changes: 6 additions & 0 deletions src/Moonglade.Web/Resources/Program.zh-Hans.resx
Original file line number Diff line number Diff line change
Expand Up @@ -1038,4 +1038,10 @@
<data name="Confirm" xml:space="preserve">
<value>确认</value>
</data>
<data name="Enable Social Links" xml:space="preserve">
<value>启用社交链接</value>
</data>
<data name="Social Links" xml:space="preserve">
<value>社交链接</value>
</data>
</root>
6 changes: 6 additions & 0 deletions src/Moonglade.Web/Resources/Program.zh-Hant.resx
Original file line number Diff line number Diff line change
Expand Up @@ -1041,4 +1041,10 @@
<data name="Confirm" xml:space="preserve">
<value>確認</value>
</data>
<data name="Enable Social Links" xml:space="preserve">
<value>啟用社交連結</value>
</data>
<data name="Social Links" xml:space="preserve">
<value>社交連結</value>
</data>
</root>

0 comments on commit 8b97446

Please sign in to comment.