CustomerCenter shows incorrect duration format in Japanese
- [x] I have updated Purchases SDK to the latest version
- [x] I have read the Contribution Guidelines
- [x] I have searched the Community
- [x] I have read docs.revenuecat.com
- [x] I have searched for existing Github issues
Describe the bug
- Environment
- Platform: Android
- SDK version: 8.14.2
- OS version: Android 15
- Android Studio version: Meerkat
- All devices with Japanese language setting
- No logs
- Steps to reproduce, with a description of expected vs. actual behavior
- Subscribe to a 1-month cycle subscription.
- Open CustomerCenter on a device set to Japanese.
- The billing cycle row displays
か月, but1か月is expected.
- Other information (e.g. stacktraces, related issues, suggestions how to fix, links for us to have context, eg. stackoverflow, etc.)
The
Period.localizedfunction removes1from the localized period text. For example,1 monthis transformed intomonth:
https://github.com/RevenueCat/purchases-android/blob/0ad7e522e5e56da1c8f3c3a901a0266ef246b34c/ui/revenuecatui/src/main/kotlin/com/revenuecat/purchases/ui/revenuecatui/extensions/PeriodExtensions.kt#L41-L50
This works well in English but not in all languages. At least in Japanese, か月 is a duration expression for "month," but it requires a number, even if it is 1.
Additional context Add any other context about the problem here.
👀 We've just linked this issue to our internal tracker and notified the team. Thank you for reporting, we're checking this out!
Hi @chibatching, Thank you for reporting it! We've created a ticket to fix it, I'll let you know when it's ready.
This issue has been automatically locked due to no recent activity after it was closed. Please open a new issue for related reports.