```js
// MyComponent.stories.js

import { html } from 'lit-html';

export const StoryWithLocale = {
  render: ({ globals: { locale } }) => {
    const caption = getCaptionForLocale(locale);
    return html`<p>${caption}</p>`;
  },
};
```