mirror of
https://github.com/usememos/memos.git
synced 2024-11-15 03:07:04 +08:00
chore: add id to i18n locales
This commit is contained in:
parent
3542a79420
commit
b547720aa8
1 changed files with 4 additions and 2 deletions
|
@ -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"],
|
||||
|
|
Loading…
Reference in a new issue