```js
// MyComponent.stories.js

export const StoryWithLocale = ({ globals: { locale } }) => {
  const caption = getCaptionForLocale(locale);
  return {
    component: MyComponent,
    props: {
      locale: caption,
    },
  };
};
```