Skip to main content
Question

How would I localize the Paywall with a variable in a text

  • November 17, 2023
  • 3 replies
  • 594 views

Forum|alt.badge.img+3

Here is a Paywall I created on the RevenueCat Paywall system.

 

Then I created a localization string in my Xcode project:

 

I also created other localization string, but in the app, only the “Full access just for ...” part not translate. Did I do some part wrong? 

 

In the simulator, as you can see other contents has been localized, except for the “full access ..” line.

 

3 replies

Ryan Glanz
RevenueCat Staff
Forum|alt.badge.img+8
  • RevenueCat Staff
  • 383 replies
  • November 21, 2023

Hi,

We do have localization support in Paywalls. Do you have that configured? If not, I wonder if the dashboard non-localization is overriding your localization in Swift.


Forum|alt.badge.img+3
  • Author
  • New Member
  • 1 reply
  • November 21, 2023
Ryan Glanz wrote:

Hi,

We do have localization support in Paywalls. Do you have that configured? If not, I wonder if the dashboard non-localization is overriding your localization in Swift.

Hi Ryan, thanks for replying. I do have the cofig set up. As you can see, some of the text were be localized in Chinese, the only part which is not being localized is the “full access… “ passge. I suspect it has something to do with the localized variable in my localizable.string file. If you look into my second picture, you will be I use %@ to replace the variable that RevenueCat created in the Paywll system, but apparently it’s not working. So I was wondering %@ is not working or I miss use the variable in the Paywll? 
 

 


  • New Member
  • 1 reply
  • May 22, 2024

i got the same problem, have you resolved it?


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings