Display UI in RTL languages correctly

This commit is contained in:
tasnim
2024-08-04 15:27:31 +03:00
parent a62a6ba295
commit 5ec54e2445
7 changed files with 60 additions and 14 deletions

2
src/i18n/utils/rtl.js Normal file
View File

@@ -0,0 +1,2 @@
const rtlLanguages = ["ar", "he", "fa", "ps", "ur"];
export const isRtl = (language) => rtlLanguages.includes(language);