airbnb / Showkase

🔦 Showkase is an annotation-processor based Android library that helps you organize, discover, search and visualize Jetpack Compose UI elements
https://medium.com/airbnb-engineering/introducing-showkase-a-library-to-organize-discover-and-visualize-your-jetpack-compose-elements-d5c34ef01095
Apache License 2.0
2.11k stars 107 forks source link

Showkase ignoring the Locale parameter for @Preview #363

Open barry-irvine opened 11 months ago

barry-irvine commented 11 months ago

We just migrated to ksp so we're getting snapshots for the normal previews too but one of our date components has different behaviour dependent on the Locale. (Start day of week is Sunday for en-rUS and Monday for en-rGB).

While this works correctly when viewing the @Preview in Android Studio it is completely ignored when generating the snapshots (which just uses the Locale of the device that generates them).

image image