55b29fb351
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] ```
6 lines
142 B
TypeScript
6 lines
142 B
TypeScript
export const i18n = {
|
|
defaultLocale: 'en',
|
|
locales: ['en', 'de', 'cs'],
|
|
} as const
|
|
|
|
export type Locale = (typeof i18n)['locales'][number]
|