このコミットが含まれているのは:
2026-10-17 19:59:18 +09:00
コミット f063fc54bb
17個のファイルの変更、276行の追加、123行の削除
+9
ファイルの表示
@@ -1,9 +1,18 @@
import { apiGet } from '@/lib/api'
import type { To } from 'react-router-dom'
export const SUPPORTED_LOCALES = ['ja', 'ain-Kana'] as const
export type LocaleCode = typeof SUPPORTED_LOCALES[number]
export type AvailableLocale = { code: string; name: string }
export const fetchLocales = (): Promise<{ locales: AvailableLocale[] }> =>
apiGet ('/locales')
export const LOCALE_LABELS: Record<LocaleCode, string> = {
ja: '日本語', 'ain-Kana': 'ヤウンモシルン アイヌ イタㇰ' }
+4
ファイルの表示
@@ -7,6 +7,10 @@ import type {
MaterialFilter,
} from '@/types'
export const localesKeys = {
root: ['locales'] as const,
index: ['locales', 'index'] as const }
export const postsKeys = {
root: ['posts'] as const,
index: (