Remove getDirFromLang, in favour of doing this in the I18nLanguageHan… (#8425)

* Remove getDirFromLang, in favour of doing this in the I18nLanguageHandler exclusively

* Small tweak
This commit is contained in:
Alex van Andel authored and GitHub committed 2023-04-21 00:45:22 +00:00
1 parent 49cbdda4cf
commit dcbf695217
3 files changed
+10 -14

No files matched your search

-3
View File
@@ -13,6 +13,3 @@ export function getLocaleFromHeaders(req: IncomingMessage): string {
}
return preferredLocale ?? i18n.defaultLocale;
}
export const getDirFromLang = (locale: string | undefined) =>
locale === "ar" || locale === "he" ? "rtl" : "ltr";