MCPcopy
hub / github.com/aykutkardas/regexlearn.com / useLanguageDirection

Function useLanguageDirection

src/utils/useLanguageDirection.tsx:5–10  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

3
4// This hook is used to determine the direction of the language
5export function useLanguageDirection() {
6 const { query } = useRouter()
7 const isRtl = rtlSupported.includes(query.lang as string)
8
9 return isRtl ? 'rtl' : 'ltr'
10}

Callers 5

LearnProgressFunction · 0.90
LessonBoxFunction · 0.90
LearnFooterFunction · 0.90
ProgressFunction · 0.90
MyAppFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected