このコミットが含まれているのは:
2026-10-18 02:22:00 +09:00
コミット 753a150128
14個のファイルの変更、189行の追加、73行の削除
+3 -3
ファイルの表示
@@ -2,16 +2,16 @@ import { createElement } from 'react'
import { useTranslation } from 'react-i18next'
import LocalisedText from '@/components/LocalisedText'
import { translateUIMessage } from '@/lib/i18n'
import { useLocale } from '@/lib/useLocale'
export const useUITranslation = (namespace = 'common') => {
const locale = useLocale ()
const { t } = useTranslation (namespace, { lng: locale })
useTranslation (namespace, { lng: locale })
const message = (key: string, values?: Record<string, string | number>) => {
const result = t (key, { ...values, returnDetails: true })
return { text: result.res, language: result.usedLng }
return translateUIMessage (key, namespace, locale, values)
}
const label = (key: string, values?: Record<string, string | number>) => {