rsnext/examples/app-dir-i18n-routing/i18n-config.ts
Michael Novotny 55b29fb351
Updates prettier to latest version. (#51000)
There are some incoming docs / MDX changes where prettier will throw an error when using the older version. Updating prettier before I bring in those changes.

Looks like the most notable change is adding parentheses around `typeof` checks in TypeScript. 

**Before**

```
export type Locale = typeof i18n['locales'][number]
```

**After**

```
export type Locale = (typeof i18n)['locales'][number]
```
2023-06-09 14:58:19 +00:00

6 lines
142 B
TypeScript

export const i18n = {
defaultLocale: 'en',
locales: ['en', 'de', 'cs'],
} as const
export type Locale = (typeof i18n)['locales'][number]