airbnb / Showkase

🔦 Showkase is an annotation-processor based Android library that helps you organize, discover, search and visualize Jetpack Compose UI elements

Home Page:https://medium.com/airbnb-engineering/introducing-showkase-a-library-to-organize-discover-and-visualize-your-jetpack-compose-elements-d5c34ef01095

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Showkase ignoring the Locale parameter for @Preview

barry-irvine opened this issue · comments

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