Skip to content

@i18n-micro/hmr

8 exports across 3 entry points. Generated from the API snapshot that pnpm run api:surface checks against the TypeScript sources.

@i18n-micro/hmr/cache-keys

ts
import { /* … */ } from '@i18n-micro/hmr/cache-keys'
ExportKindSignature
SERVER_CC_KEYconsttypeof SERVER_CC_KEY
STORAGE_CC_KEYconsttypeof STORAGE_CC_KEY

@i18n-micro/hmr/generate-plugin

ts
import { /* … */ } from '@i18n-micro/hmr/generate-plugin'
ExportKindSignature
generateHmrPluginfunction(files: string[]) => string

@i18n-micro/hmr/watcher

ts
import { /* … */ } from '@i18n-micro/hmr/watcher'
ExportKindSignature
handleTranslationWatchChangefunction(input: HandleTranslationWatchChangeInput) => Promise<"page" | "root" | "ignored">
HandleTranslationWatchChangeInputinterface7 members
parseTranslationWatchRelativePathfunction(relativePath: string) => ParsedTranslationWatchPath
readTranslationFilefunction(filePath: string) => Record<string, unknown>
TranslationContentTrackerclass3 members
HandleTranslationWatchChangeInput — 7 members
MemberType
configuredLocalesSet<string>
listPageNames() => string[]
mergeInputOmit<DevTranslationMergeInput, "locale" | "pageName">
relativePathstring
routesLocaleLinks?Record<string, string> | undefined
serverCacheTranslationWatchCache
storageCache?TranslationWatchCache | null | undefined
TranslationContentTracker — 3 members
MemberType
forget(filePath: string) => void
hashesprivate Map<string, string>
shouldProcess(filePath: string) => boolean

Back to all packages · Integration guides

Released under the MIT License.