-
Notifications
You must be signed in to change notification settings - Fork 86
Open
Description
- I have updated Purchases SDK to the latest version
- I have read the Contribution Guidelines
- I have searched the Community
- I have read docs.revenuecat.com
- 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.)
ThePeriod.localized
function removes1
from the localized period text. For example,1 month
is transformed intomonth
:
Lines 41 to 50 in 0ad7e52
private fun Period.localized( locale: Locale, width: MeasureFormat.FormatWidth, ): String { var formattedPeriod = localizedPeriod(locale, width) if (value == 1 && formattedPeriod.startsWith("1")) { formattedPeriod = formattedPeriod.substring(startIndex = 1).trim() } return formattedPeriod }
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.
Metadata
Metadata
Assignees
Labels
No labels