fix: ja language support
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
module.exports = {
|
||||
i18n: {
|
||||
defaultLocale: "en",
|
||||
locales: ["en", "zh"],
|
||||
locales: ["en", "zh", "ja"],
|
||||
reloadOnPrerender: process.env.NODE_ENV === "development",
|
||||
},
|
||||
}
|
||||
|
||||
@@ -6,8 +6,9 @@ import localizedFormat from "dayjs/plugin/localizedFormat"
|
||||
import duration from "dayjs/plugin/duration"
|
||||
import relativeTime from "dayjs/plugin/relativeTime"
|
||||
import { useTranslation } from "next-i18next"
|
||||
import "dayjs/locale/zh"
|
||||
import "dayjs/locale/en"
|
||||
import "dayjs/locale/zh"
|
||||
import "dayjs/locale/ja"
|
||||
|
||||
dayjs.extend(localizedFormat)
|
||||
dayjs.extend(utc)
|
||||
|
||||
Reference in New Issue
Block a user