From 37020d847e66e57913d493716e98f4dcab749262 Mon Sep 17 00:00:00 2001 From: Joe Carstairs <65492573+Sycamost@users.noreply.github.com> Date: Sat, 12 Aug 2023 15:49:03 +0100 Subject: Applies Prettier --- src/i18n/translate.ts | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'src/i18n/translate.ts') diff --git a/src/i18n/translate.ts b/src/i18n/translate.ts index c0d5620..b407e3b 100644 --- a/src/i18n/translate.ts +++ b/src/i18n/translate.ts @@ -1,9 +1,9 @@ -import type Locale from "../types/Locale"; -import type { TranslationsDictionary } from "../types/TranslationsDictionary"; -import { defaultLocale } from "./locales"; +import type Locale from '../types/Locale'; +import type { TranslationsDictionary } from '../types/TranslationsDictionary'; +import { defaultLocale } from './locales'; -export default function(locale: Locale) { - return function(dict: TranslationsDictionary, key: T) { +export default function (locale: Locale) { + return function (dict: TranslationsDictionary, key: T) { return dict[key][locale] ?? dict[key][defaultLocale]; - } -} \ No newline at end of file + }; +} -- cgit v1.2.3