🌐 Add missing gift claimed localization

This commit is contained in:
2025-10-26 03:13:16 +08:00
parent 85e706335a
commit f65a7360e2
5 changed files with 26 additions and 2 deletions

View File

@@ -212,5 +212,17 @@ namespace DysonNetwork.Sphere.Resources.Localization {
return ResourceManager.GetString("TransactionNewBodyMinus", resourceCulture);
}
}
internal static string GiftClaimedTitle {
get {
return ResourceManager.GetString("GiftClaimedTitle", resourceCulture);
}
}
internal static string GiftClaimedBody {
get {
return ResourceManager.GetString("GiftClaimedBody", resourceCulture);
}
}
}
}

View File

@@ -107,4 +107,10 @@
<data name="TransactionNewBodyMinus" xml:space="preserve">
<value>{0} {1} removed from your wallet</value>
</data>
<data name="GiftClaimedTitle" xml:space="preserve">
<value>Someone claimed your gift</value>
</data>
<data name="GiftClaimedBody" xml:space="preserve">
<value>Your gift {0} has been claimed by {1}</value>
</data>
</root>

View File

@@ -99,4 +99,10 @@
<data name="TransactionNewBodyMinus" xml:space="preserve">
<value>{0} {1} 从您的钱包移除</value>
</data>
<data name="GiftClaimedTitle" xml:space="preserve">
<value>有人领取了你的礼物</value>
</data>
<data name="GiftClaimedBody" xml:space="preserve">
<value>你的礼物 {0} 已被 {1} 领取</value>
</data>
</root>

View File

@@ -983,7 +983,7 @@ public class SubscriptionService(
{
Topic = "gifts.claimed",
Title = localizer["GiftClaimedTitle"],
Body = localizer["GiftClaimedBody", humanReadableName, redeemer.Name ?? redeemer.Id.ToString()],
Body = localizer["GiftClaimedBody", humanReadableName, redeemer.Name],
Meta = GrpcTypeHelper.ConvertObjectToByteString(new Dictionary<string, object>
{
["gift_id"] = gift.Id.ToString(),

View File

@@ -174,7 +174,7 @@
<s:Boolean x:Key="/Default/ResxEditorPersonal/CheckedGroups/=DysonNetwork_002EPass_002FResources_002FLocalization_002FEmailResource/@EntryIndexedValue">False</s:Boolean>
<s:Boolean x:Key="/Default/ResxEditorPersonal/CheckedGroups/=DysonNetwork_002EPass_002FResources_002FLocalization_002FNotificationResource/@EntryIndexedValue">False</s:Boolean>
<s:Boolean x:Key="/Default/ResxEditorPersonal/CheckedGroups/=DysonNetwork_002EPass_002FResources_002FLocalization_002FNotificationResource/@EntryIndexedValue">True</s:Boolean>
<s:Boolean x:Key="/Default/ResxEditorPersonal/CheckedGroups/=DysonNetwork_002EPass_002FResources_002FLocalization_002FSharedResource/@EntryIndexedValue">False</s:Boolean>