Commit 732a7d0b authored by johnnyjoy's avatar johnnyjoy

chore: add fa locale

parent d8b3a69c
......@@ -81,7 +81,7 @@ const App = () => {
const currentLocale = commonContext.locale;
i18n.changeLanguage(currentLocale);
document.documentElement.setAttribute("lang", currentLocale);
if (currentLocale === "ar") {
if (["ar", "fa"].includes(currentLocale)) {
document.documentElement.setAttribute("dir", "rtl");
} else {
document.documentElement.setAttribute("dir", "ltr");
......
......@@ -10,6 +10,7 @@ export const locales = orderBy([
"en",
"en-GB",
"es",
"fa",
"fr",
"hi",
"hr",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment