Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Paywalls: add Chinese from mainland China #1537

Merged
merged 1 commit into from
Dec 26, 2023

Conversation

aboedo
Copy link
Member

@aboedo aboedo commented Dec 22, 2023

Added Chinese from mainland China.

Notes:

  • I_have_no_idea_what_im_doing.gif
  • There isn't an exact equivalent to iOS's zh_Hans in Android Studio, it allows you to set zh_CN and zh_SG. ChatGPT suggested adding those two as the equivalent. I added only one, under the assumption that zh_SG would automatically pick up zh_CN just like what happens in different variations of Spanish or English.
  • I added the entries that we have on iOS for Chinese Simplified, updating format where needed.

@aboedo aboedo requested review from greenietea and a team December 22, 2023 14:52
@aboedo aboedo self-assigned this Dec 22, 2023
Copy link

codecov bot commented Dec 22, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (9b889bd) 84.14% compared to head (1ecc92b) 84.14%.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1537   +/-   ##
=======================================
  Coverage   84.14%   84.14%           
=======================================
  Files         218      218           
  Lines        7196     7196           
  Branches     1007     1007           
=======================================
  Hits         6055     6055           
  Misses        750      750           
  Partials      391      391           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@aboedo
Copy link
Member Author

aboedo commented Dec 22, 2023

@RevenueCat/coresdk one thing I realized is that we don't have an android equivalent to this iOS key: https://github.com/RevenueCat/purchases-ios/blob/main/RevenueCatUI/Resources/zh-Hans.lproj/Localizable.strings#L5 do we not provide this behavior by default?

Copy link
Contributor

@NachoSoto NachoSoto left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Makes sense 🙏🏻

@NachoSoto
Copy link
Contributor

And yeah I think we don't have that alert in Android.

@NachoSoto NachoSoto merged commit b6587db into main Dec 26, 2023
2 checks passed
@NachoSoto NachoSoto deleted the andy/add_chinese_simplified_localization branch December 26, 2023 11:23
vegaro pushed a commit that referenced this pull request Dec 26, 2023
**This is an automatic release.**

### RevenueCatUI
* `Paywalls`: `PurchaseCancelledError` sends `onPurchaseCancelled`
instead of an error (#1538) via NachoSoto (@NachoSoto)
* Paywalls: add Chinese from mainland China (#1537) via Andy Boedo
(@aboedo)

Co-authored-by: revenuecat-ops <ops@revenuecat.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants