Skip to content

Commit 408138b

Browse files
committed
Reset AppContext which was accidentally formattet
1 parent 8ac695d commit 408138b

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

src/AppContext.tsx

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,9 @@ export type Locale =
4545
for validating of other dictionaries have same keys as en dictionary
4646
some might be missing, but the shape should be the same
4747
*/
48-
type DeepPartial<T> =
49-
T extends Record<string, unknown> ? { [K in keyof T]?: DeepPartial<T[K]> } : T;
48+
type DeepPartial<T> = T extends Record<string, unknown>
49+
? { [K in keyof T]?: DeepPartial<T[K]> }
50+
: T;
5051

5152
const raw_dict_map: Record<Locale, () => Promise<{ dict: DeepPartial<RawDictionary> }>> = {
5253
// eslint-disable-next-line @typescript-eslint/no-unsafe-return, @typescript-eslint/no-explicit-any
@@ -95,8 +96,8 @@ const toLocale = (string: string): Locale | undefined =>
9596
string in raw_dict_map
9697
? (string as Locale)
9798
: string in LANG_ALIASES
98-
? (LANG_ALIASES[string] as Locale)
99-
: undefined;
99+
? (LANG_ALIASES[string] as Locale)
100+
: undefined;
100101

101102
interface Settings {
102103
locale: Locale;

0 commit comments

Comments
 (0)