xLog/src/hooks
DIYgod 91aa185d1c
feat: use next-intl (#1026)
* feat: use next-intl

* feat: set next-intl localePrefix to never

* chore: add next-intl

* chore: fix lock file

* feat: use [locale]

* fix: the custom rewrite conflict with next-intl rewrite in middleware

* fix: getTranslations function name

* fix: remove comma in translation key

* fix: next-intl dev error

* feat: update tran text

* feat: transaction for about page

* feat: i18n for server components

* feat: i18n for client components

* feat: i18n for client components and provider

* feat: i18n for language switch

* feat: remove i18next

* feat: custom intl error, ignore MISSING_MESSAGE error

* feat: use useLocale

* fix: unstable_setRequestLocale for middleware error
2023-11-28 01:34:49 +08:00
..
useClient.ts fix: fix popover position, closes #441 (#442) 2023-04-27 19:46:12 +01:00
useCodeCopy.ts style: eslint config and prettier for dx 2023-04-18 22:10:13 +08:00
useCodemirrorTheme.ts feat: display anonymous name 2023-06-14 00:10:22 +01:00
useDarkMode.ts feat: share preferred_language cookie between subdomains 2023-08-17 23:48:12 +01:00
useDate.ts feat: use next-intl (#1026) 2023-11-28 01:34:49 +08:00
useEditorState.ts feat: unified editor data converter 2023-08-26 00:39:43 +01:00
useGetState.ts refactor: codemirror editor (#366) 2023-04-18 00:53:59 +01:00
useHash.ts fix: scroll to anchor when init url with anchor (#599) 2023-06-04 17:56:27 +01:00
useIsFullscreen.ts feat: support toggle focus mode for editor (#1015) 2023-10-06 12:10:33 +08:00
useLifecycle.ts feat: support mermid in edit mode 2023-04-13 22:49:12 +08:00
useMobileLayout.ts refactor: codemirror editor (#366) 2023-04-18 00:53:59 +01:00
useNProgress.ts feat: recover nprogress and remove dark mode switching transition to avoid link flicker 2023-07-22 14:51:22 +01:00
usePrevious.ts feat: add block number in home 2023-07-27 23:03:33 +01:00
useRefValue.ts fix: to fix the mistakes I have made about react (#791) 2023-07-18 15:20:18 +01:00
useRouterEvents.ts fix: to fix the mistakes I have made about react (#791) 2023-07-18 15:20:18 +01:00
useSyncOnce.ts fix: optimize code and fix loading button style (#637) 2023-06-14 15:43:51 +01:00
useUploadFile.ts style: eslint config and prettier for dx 2023-04-18 22:10:13 +08:00
useUserRole.ts Remove dependency Unidata (#473) 2023-05-02 00:32:25 +01:00