mirror of
https://github.com/usememos/memos.git
synced 2024-12-01 06:34:35 +03:00
chore: add ar locale item
This commit is contained in:
parent
7e80e14f16
commit
d95a6ce898
@ -41,6 +41,7 @@ func (key UserSettingKey) String() string {
|
||||
|
||||
var (
|
||||
UserSettingLocaleValue = []string{
|
||||
"ar",
|
||||
"de",
|
||||
"en",
|
||||
"es",
|
||||
|
@ -88,6 +88,11 @@ const App = () => {
|
||||
storage.set({
|
||||
locale: locale,
|
||||
});
|
||||
if (locale === "ar") {
|
||||
document.documentElement.setAttribute("dir", "rtl");
|
||||
} else {
|
||||
document.documentElement.setAttribute("dir", "ltr");
|
||||
}
|
||||
}, [locale]);
|
||||
|
||||
useEffect(() => {
|
||||
|
@ -4,6 +4,7 @@ import toast from "react-hot-toast";
|
||||
import { initReactI18next } from "react-i18next";
|
||||
|
||||
export const availableLocales = [
|
||||
"ar",
|
||||
"de",
|
||||
"en",
|
||||
"es",
|
||||
|
@ -131,6 +131,7 @@ def get_code_name(json_filename):
|
||||
|
||||
# Map language code to code name
|
||||
lang_map = {
|
||||
"ar": "ar",
|
||||
"de": "de",
|
||||
"en": "en",
|
||||
"es": "es",
|
||||
|
Loading…
Reference in New Issue
Block a user