Skip to content

Commit

Permalink
docs: update README for latest version of storybook initialGlobals
Browse files Browse the repository at this point in the history
  • Loading branch information
stevensacks committed Jul 22, 2024
1 parent 7dd356e commit 82b72c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ export const reactIntl = {
---

### preview.ts
In your `preview.ts`, you need to add the `locales` and `locale` to initialGlobals, as well as add `reactIntl` that you exported from the above file to parameters.
In your `preview.ts`, you need to add the `locales` and `locale` to `initialGlobals` (or `globals` if you're not using the latest version of storybook), as well as add `reactIntl` that you exported from the above file to parameters.

`locales` is an object where the keys are the "ids" of the locales/languages and the values are the names you want to display in the dropdown.

Expand Down

0 comments on commit 82b72c6

Please sign in to comment.