chore: add ar locale item

This commit is contained in:
Steven 2023-10-14 00:25:01 +08:00
parent 7e80e14f16
commit d95a6ce898
4 changed files with 8 additions and 0 deletions

View File

@ -41,6 +41,7 @@ func (key UserSettingKey) String() string {
var (
UserSettingLocaleValue = []string{
"ar",
"de",
"en",
"es",

View File

@ -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(() => {

View File

@ -4,6 +4,7 @@ import toast from "react-hot-toast";
import { initReactI18next } from "react-i18next";
export const availableLocales = [
"ar",
"de",
"en",
"es",

View File

@ -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",