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:
1 parent
49cbdda4cf
commit
dcbf695217
3 files changed
+10
-14
No files matched your search
@@ -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";
|
||||
Reference in new issue
Block a user