RevenueCat/purchases-ios

Localization Error on Template 7 Paywall

Closed this issue · 3 comments

Describe the bug
I am getting Paywall has no localization error on Paywall while using template 7. I need to use multi-tier paywall. When it can't find any localization I think it falls back to Template 2 which can be shown in the attachment. There is no localization errors on other templates. How can I fix this? What am I missing?
A clear and concise description of what the bug is. The more detail you can provide the faster our team will be able to triage and resolve the issue.

  1. Environment
    1. Platform: iOS 17.5
    2. SDK version: 5.2.0
    3. StoreKit version:
      • StoreKit 1
      • StoreKit 2 (enabled with usesStoreKit2IfAvailable(true))
    4. OS version: macOS Sonoma 14.5
    5. Xcode version: 15.4
    6. Device and/or simulator:
      • Device
      • Simulator
    7. Environment:
      • Sandbox
      • TestFight
      • Production
    8. How widespread is the issue. Percentage of devices affected. 100%
  2. Debug logs that reproduce the issue. Complete logs with Purchases.logLevel = .verbose will help us debug this issue.
{
  "locale" : {
    "current" : 2,
    "identifier" : "en_TR"
  },
  "observer_mode" : false,
  "offline_customer_info_support" : true,
  "receipt_url" : "file:\/\/\/private\/var\/mobile\/Containers\/Data\/Application\/EE7B066F-507B-46F2-83F3-AD78C7D35698\/StoreKit\/sandboxReceipt",
  "sandbox" : true,
  "sdk_version" : "5.2.0",
  "store_kit2_enabled" : true,
  "verification_mode" : "disabled"
}

This is the one which multi tier:

{
  "asset_base_url" : "https:\/\/assets.pawwalls.com",
  "config" : {
    "blurred_background_image" : false,
    "colors" : {
      "dark" : {
        "accent1" : "#24D8AD",
        "accent2" : "#24D8AD",
        "accent3" : "#606463",
        "background" : "#000000",
        "call_to_action_background" : "#24D8AD",
        "call_to_action_foreground" : "#FFFFFF",
        "text1" : "#FFFFFF",
        "text2" : "#000000",
        "text3" : "#FFFFFF",
        "tier_control_background" : "#606463",
        "tier_control_foreground" : "#000000",
        "tier_control_selected_background" : "#008575",
        "tier_control_selected_foreground" : "#FFFFFF"
      },
      "light" : {
        "accent1" : "#30A0F8",
        "accent2" : "#30A0F8",
        "accent3" : "#DFDFDF",
        "background" : "#FFFFFF",
        "call_to_action_background" : "#A8EE76",
        "call_to_action_foreground" : "#000000",
        "text1" : "#000000",
        "text2" : "#FFFFFF",
        "text3" : "#000000",
        "tier_control_background" : "#EFEFF0",
        "tier_control_foreground" : "#000000",
        "tier_control_selected_background" : "#A8EE76",
        "tier_control_selected_foreground" : "#000000"
      }
    },
    "colors_by_tier" : {
      "H0lxu_ahWe" : {
        "dark" : {
          "accent1" : "#24D8AD",
          "accent2" : "#24D8AD",
          "accent3" : "#606463",
          "background" : "#000000",
          "call_to_action_background" : "#24D8AD",
          "call_to_action_foreground" : "#FFFFFF",
          "text1" : "#FFFFFF",
          "text2" : "#000000",
          "text3" : "#FFFFFF",
          "tier_control_background" : "#606463",
          "tier_control_foreground" : "#000000",
          "tier_control_selected_background" : "#008575",
          "tier_control_selected_foreground" : "#FFFFFF"
        },
        "light" : {
          "accent1" : "#30A0F8",
          "accent2" : "#30A0F8",
          "accent3" : "#DFDFDF",
          "background" : "#FFFFFF",
          "call_to_action_background" : "#A8EE76",
          "call_to_action_foreground" : "#000000",
          "text1" : "#000000",
          "text2" : "#FFFFFF",
          "text3" : "#000000",
          "tier_control_background" : "#EFEFF0",
          "tier_control_foreground" : "#000000",
          "tier_control_selected_background" : "#A8EE76",
          "tier_control_selected_foreground" : "#000000"
        }
      },
      "etLDAspuEN" : {
        "dark" : {
          "accent1" : "#24D8AD",
          "accent2" : "#24D8AD",
          "accent3" : "#606463",
          "background" : "#000000",
          "call_to_action_background" : "#24D8AD",
          "call_to_action_foreground" : "#FFFFFF",
          "text1" : "#FFFFFF",
          "text2" : "#000000",
          "text3" : "#FFFFFF",
          "tier_control_background" : "#606463",
          "tier_control_foreground" : "#000000",
          "tier_control_selected_background" : "#008575",
          "tier_control_selected_foreground" : "#FFFFFF"
        },
        "light" : {
          "accent1" : "#30A0F8",
          "accent2" : "#30A0F8",
          "accent3" : "#DFDFDF",
          "background" : "#FFFFFF",
          "call_to_action_background" : "#A8EE76",
          "call_to_action_foreground" : "#000000",
          "text1" : "#000000",
          "text2" : "#FFFFFF",
          "text3" : "#000000",
          "tier_control_background" : "#EFEFF0",
          "tier_control_foreground" : "#000000",
          "tier_control_selected_background" : "#A8EE76",
          "tier_control_selected_foreground" : "#000000"
        }
      },
      "wx7n_cms2M" : {
        "dark" : {
          "accent1" : "#24D8AD",
          "accent2" : "#24D8AD",
          "accent3" : "#606463",
          "background" : "#000000",
          "call_to_action_background" : "#24D8AD",
          "call_to_action_foreground" : "#FFFFFF",
          "text1" : "#FFFFFF",
          "text2" : "#000000",
          "text3" : "#FFFFFF",
          "tier_control_background" : "#606463",
          "tier_control_foreground" : "#000000",
          "tier_control_selected_background" : "#008575",
          "tier_control_selected_foreground" : "#FFFFFF"
        },
        "light" : {
          "accent1" : "#30A0F8",
          "accent2" : "#30A0F8",
          "accent3" : "#DFDFDF",
          "background" : "#FFFFFF",
          "call_to_action_background" : "#A8EE76",
          "call_to_action_foreground" : "#000000",
          "text1" : "#000000",
          "text2" : "#FFFFFF",
          "text3" : "#000000",
          "tier_control_background" : "#EFEFF0",
          "tier_control_foreground" : "#000000",
          "tier_control_selected_background" : "#A8EE76",
          "tier_control_selected_foreground" : "#000000"
        }
      }
    },
    "display_restore_purchases" : true,
    "images" : {
      "background" : null,
      "header" : null,
      "icon" : null
    },
    "images_by_tier" : {
      "H0lxu_ahWe" : {
        "background" : null,
        "header" : null,
        "icon" : null
      },
      "wx7n_cms2M" : {
        "background" : null,
        "header" : null,
        "icon" : null
      }
    },
    "images_heic" : {
      "background" : null,
      "header" : null,
      "icon" : null
    },
    "packages" : [

    ],
    "privacy_url" : null,
    "tiers" : [
      {
        "default_package" : "basic_yearly",
        "id" : "H0lxu_ahWe",
        "packages" : [
          "basic_weekly",
          "basic_monthly",
          "basic_yearly"
        ]
      },
      {
        "default_package" : "standard_yearly",
        "id" : "wx7n_cms2M",
        "packages" : [
          "standard_weekly",
          "standard_monthly",
          "standard_yearly"
        ]
      },
      {
        "default_package" : "pro_yearly",
        "id" : "etLDAspuEN",
        "packages" : [
          "pro_weekly",
          "pro_monthly",
          "pro_yearly"
        ]
      }
    ],
    "tos_url" : null
  },
  "localized_strings" : {

  },
  "localized_strings_by_tier" : {

  },
  "revision" : 3,
  "template_name" : "7"
}

This is an example for single tier:

{
  "asset_base_url" : "https:\/\/assets.pawwalls.com",
  "config" : {
    "blurred_background_image" : false,
    "colors" : {
      "dark" : {
        "accent1" : "#24D8AD",
        "accent2" : "#24D8AD",
        "accent3" : "#606463",
        "background" : "#000000",
        "call_to_action_background" : "#24D8AD",
        "call_to_action_foreground" : "#FFFFFF",
        "text1" : "#FFFFFF",
        "text2" : "#000000",
        "text3" : "#FFFFFF"
      },
      "light" : {
        "accent1" : "#30A0F8",
        "accent2" : "#30A0F8",
        "accent3" : "#DFDFDF",
        "background" : "#FFFFFF",
        "call_to_action_background" : "#A8EE76",
        "call_to_action_foreground" : "#000000",
        "text1" : "#000000",
        "text2" : "#FFFFFF",
        "text3" : "#000000"
      }
    },
    "colors_by_tier" : {

    },
    "default_package" : "pro_yearly",
    "display_restore_purchases" : true,
    "images" : {
      "background" : null,
      "header" : null,
      "icon" : null
    },
    "images_by_tier" : {

    },
    "images_heic" : {
      "background" : null,
      "header" : null,
      "icon" : null
    },
    "packages" : [
      "pro_weekly",
      "pro_monthly",
      "pro_yearly"
    ],
    "privacy_url" : null,
    "tiers" : [

    ],
    "tos_url" : null
  },
  "localized_strings" : {
    "en_US" : {
      "call_to_action" : "Continue",
      "call_to_action_with_intro_offer" : null,
      "features" : [
        {
          "icon_id" : "tick",
          "title" : "No ads"
        },
        {
          "icon_id" : "tick",
          "title" : "Follow\/add unlimited sources."
        }
      ],
      "offer_details" : "No ads, follow\/add unlimited sources.",
      "offer_details_with_intro_offer" : null,
      "offer_name" : "{{ sub_period }}",
      "offer_overrides" : {

      },
      "subtitle" : null,
      "tier_name" : null,
      "title" : "Get started with our Pro Plan"
    },
    "tr" : {
      "call_to_action" : "Devam Et",
      "call_to_action_with_intro_offer" : null,
      "features" : [
        {
          "icon_id" : "tick",
          "title" : "Reklamsız"
        },
        {
          "icon_id" : "tick",
          "title" : "Sınırsız kaynak ekleme"
        }
      ],
      "offer_details" : "Pro Plan {{ price }}",
      "offer_details_with_intro_offer" : null,
      "offer_name" : "{{ sub_period }}",
      "offer_overrides" : {

      },
      "subtitle" : null,
      "tier_name" : null,
      "title" : "Pro planımız ile başlayın"
    }
  },
  "localized_strings_by_tier" : {

  },
  "revision" : 2,
  "template_name" : "5"
}
  1. Steps to reproduce, with a description of expected vs. actual behavior

Please fill in

  1. Other information (e.g. stacktraces, related issues, suggestions how to fix, links for us to have context, eg. stackoverflow, etc.)

  2. Additional context
    Add any other context about the problem here.
    IMG_1627
    Screenshot 2024-07-20 at 20 01 28
    Screenshot 2024-07-20 at 20 01 43

👀 We've just linked this issue to our internal tracker and notified the team. Thank you for reporting, we're checking this out!

@rocxteady Hey, thanks for reporting this! This should be fixed now on the backend (no SDK change is needed)

This should be returning localizations for you now in the SDK 💪

Thank you @joshdholtz . It's working.