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 id to i18n locales

Stevenb547720aa83e
diff --git a/web/src/i18n.ts b/web/src/i18n.ts
index 4fe51acd5..d00bc74af 100644
--- a/web/src/i18n.ts
+++ b/web/src/i18n.ts
@@ -1,8 +1,9 @@
import i18n, { BackendModule, FallbackLng, FallbackLngObjList } from "i18next";
+import { orderBy } from "lodash-es";
import { initReactI18next } from "react-i18next";
import { findNearestMatchedLanguage } from "./utils/i18n";
-export const locales = [
+export const locales = orderBy([
"ar",
"de",
"en",
@@ -12,6 +13,7 @@ export const locales = [
"hi",
"hr",
"hu",
+ "id",
"it",
"ja",
"ka-GE",
@@ -30,7 +32,7 @@ export const locales = [
"vi",
"zh-Hans",
"zh-Hant",
-] as const;
+]);
const fallbacks = {
"zh-HK": ["zh-Hant", "en"],