Update localization

This commit is contained in:
Ilya Laktyushin 2026-03-31 11:59:27 +02:00
parent 7ea47b8105
commit c1d8b98fda
2 changed files with 8 additions and 4 deletions

View file

@ -8771,6 +8771,7 @@ Sorry for the inconvenience.";
"Premium.CurrentPlan" = "your current plan";
"Premium.UpgradeFor" = "Upgrade for %@ / month";
"Premium.UpgradeForAnnual" = "Upgrade for %@ / year";
"Premium.UpgradeForBiannual" = "Upgrade for %@ / 2 years";
"ChatList.PremiumAnnualDiscountTitle" = "Telegram Premium with a discount of %@";
"ChatList.PremiumAnnualDiscountText" = "Sign up for the annual payment plan for Telegram Premium now to get the discount.";

View file

@ -3792,7 +3792,13 @@ private final class PremiumIntroScreenComponent: CombinedComponent {
} else if isUnusedGift {
buttonTitle = environment.strings.Premium_Gift_ApplyLink
} else if state.isPremium == true && state.canUpgrade {
buttonTitle = state.isAnnual ? environment.strings.Premium_UpgradeForAnnual(state.price ?? "").string : environment.strings.Premium_UpgradeFor(state.price ?? "").string
if state.isAnnual {
buttonTitle = environment.strings.Premium_UpgradeForAnnual(state.price ?? "").string
} else if state.isBiannual {
buttonTitle = environment.strings.Premium_UpgradeForBiannual(state.price ?? "").string
} else {
buttonTitle = environment.strings.Premium_UpgradeFor(state.price ?? "").string
}
} else {
if state.isAnnual {
buttonTitle = environment.strings.Premium_SubscribeForAnnual(state.price ?? "").string
@ -3803,9 +3809,6 @@ private final class PremiumIntroScreenComponent: CombinedComponent {
}
}
let controller = environment.controller
let button = button.update(
component: SolidRoundedButtonComponent(