mirror of
https://github.com/usememos/memos.git
synced 2025-10-17 17:56:28 +08:00
chore: add fa locale
This commit is contained in:
parent
d8b3a69c31
commit
732a7d0bbf
2 changed files with 2 additions and 1 deletions
|
@ -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",
|
||||
|
|
Loading…
Add table
Reference in a new issue