| 文件 | 最后提交记录 | 最后更新时间 |
|---|---|---|
Support plural string resource (#4519) Ports a part of Unicode's ICU in pure Kotlin and implements Android-style plural string resource support. Fixes JetBrains/compose-multiplatform#425. # Changes - Added org.jetbrains.compose.resources.intl.{PluralCategory, PluralRule, PluralRuleList}, which parses and evaluates scripts in Unicode's Locale Data Markup Langauge. - Copied plurals.xml from Unicode's [CLDR](https://github.com/unicode-org/cldr/blob/release-44-1/common/supplemental/plurals.xml). - Added GeneratePluralRuleListsTask, which parses plurals.xml and generates required Kotlin source codes. - Added PluralStringResource, pluralStringResource, or getPluralString, corresponding to StringResource, stringResource, or getString. - Modified ResourcesSpec.kt so the generated Res class exposes Res.plurals. # Potential Further Improvements - [ ] Allow configuring the default language in the compose.resources {} block (#4482) to determine the default pluralization rule (or just presume English as default) - [ ] Move the parser logic to the Gradle plugin and generate pluralization rules in Res only for languages used in composeResources --------- Co-authored-by: Konstantin Tskhovrebov <konstantin.tskhovrebov@jetbrains.com> | 2 年前 | |
Dump resources library API (#5435) ## Release Notes N/A | 11 个月前 | |
Add a blocking resources loading for web tests (#5248) For compose resource tests it's acceptable to use blocking http requests. This way we can run the tests right now, without waiting for https://android-review.googlesource.com/c/platform/frameworks/support/+/3509670 to land on our fork. <!-- Optional --> Fixes https://youtrack.jetbrains.com/issue/CMP-7711/Add-blocking-compose-resources-loader-for-web-tests ## Release Notes N/A | 1 年前 | |
Fix getSystemEnvironment crash on web when a locale region is undefined (#5447) Handle a case when Int.Locale('...') is created without a region - then use an empty string for region. Fixes https://youtrack.jetbrains.com/issue/CMP-6930 ## Testing - Added a test - This should be tested by QA ## Release Notes ### Fixes - Resources - Fix a crash when calling getString and the Locale has no region specified | 11 个月前 | |
Bump versions (Kotlin, AGP, Gradle) (#5399) ## Release Notes N/A | 1 年前 |
| 文件 | 最后提交记录 | 最后更新时间 |
|---|---|---|
| 2 年前 | ||
| 11 个月前 | ||
| 1 年前 | ||
| 11 个月前 | ||
| 1 年前 |