chore: add fa locale

This commit is contained in:
johnnyjoy
2025-02-05 19:26:34 +08:00
parent d8b3a69c31
commit 732a7d0bbf
2 changed files with 2 additions and 1 deletions

View File

@@ -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");

View File

@@ -10,6 +10,7 @@ export const locales = orderBy([
"en",
"en-GB",
"es",
"fa",
"fr",
"hi",
"hr",