Skip to content

armgit / memos

Public Imported from GitHub
0

Memos is an open-source, self-hosted note-taking app that brings your everyday thoughts together in a personal timeline. Your data stays yours, and you choose what to keep private or share.

chore: add fa locale

johnnyjoy732a7d0bbfc4
diff --git a/web/src/App.tsx b/web/src/App.tsx
index 6aac053da..27166f131 100644
--- a/web/src/App.tsx
+++ b/web/src/App.tsx
@@ -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");
diff --git a/web/src/i18n.ts b/web/src/i18n.ts
index c0098f8d7..42b5284fc 100644
--- a/web/src/i18n.ts
+++ b/web/src/i18n.ts
@@ -10,6 +10,7 @@ export const locales = orderBy([
"en",
"en-GB",
"es",
+ "fa",
"fr",
"hi",
"hr",