MCPcopy Create free account

hub / github.com/amannn/next-intl / functions

Functions892 in github.com/amannn/next-intl

↓ 2 callersFunctionconvertFormatsToIntlMessageFormat
( globalFormats?: Formats, inlineFormats?: Formats, timeZone?: TimeZone )
packages/use-intl/src/core/convertFormatsToIntlMessageFormat.tsx:15
↓ 2 callersFunctioncreateBaseTranslator
(config: Omit<CreateBaseTranslatorProps<Messages>, 'messagesOrError'>)
packages/use-intl/src/core/createBaseTranslator.tsx:125
↓ 2 callersFunctioncreateCompiler
()
packages/next-intl/src/plugin/extractor/ExtractionCompiler.test.tsx:54
↓ 2 callersFunctioncreateSharedNavigationFns
( getLocale: () => PromiseOrValue<Locale>, routing?: [AppPathnames] extends [never] ? | RoutingConfigS
packages/next-intl/src/navigation/shared/createSharedNavigationFns.tsx:38
↓ 2 callersFunctiondecodePathname
(pathname: string)
packages/next-intl/src/middleware/utils.tsx:332
↓ 2 callersFunctiondescribeParseFailures
( failures: Array<{filePath: string; error: unknown}>, projectRoot: string )
packages/extractor/src/utils.ts:46
↓ 2 callersMethodexecuteSave
()
packages/next-intl/src/plugin/extractor/SaveScheduler.tsx:50
↓ 2 callersMethodextractFile
( absoluteFilePath: string )
packages/next-intl/src/plugin/extractor/CatalogManager.tsx:311
↓ 2 callersFunctionformat
( message: CompiledMessage, locale: string, values: FormatValues<RichTextElement> = {} as FormatValues<R
packages/icu-minify/src/format.tsx:58
↓ 2 callersFunctionformatBranch
( branch: CompiledNode, locale: string, values: FormatValues<RichTextElement>, formatOptions: FormatOp
packages/icu-minify/src/format.tsx:293
↓ 2 callersFunctionformatNode
( node: CompiledNode, locale: string, values: FormatValues<RichTextElement>, options: FormatOptions,
packages/icu-minify/src/format.tsx:99
↓ 2 callersFunctionformatPathnameTemplate
(template: string, params?: object)
packages/next-intl/src/middleware/utils.tsx:241
↓ 2 callersFunctionformatTemplatePathname
( sourcePathname: string, sourceTemplate: string, targetTemplate: string, prefix?: string )
packages/next-intl/src/middleware/utils.tsx:78
↓ 2 callersFunctiongetAlternateLinks
(response: APIResponse)
examples/example-app-router-playground/tests/utils.ts:3
↓ 2 callersFunctiongetAlternateLinksHeaderValue
({ internalTemplateName, localizedPathnames, request, resolvedLocale, routing }: { routing: Omit<
packages/next-intl/src/middleware/getAlternateLinksHeaderValue.tsx:22
↓ 2 callersFunctiongetArgs
( messageOrParams: | Message | ({ id?: string; message: Message; description
packages/use-intl/src/react/useExtracted.tsx:25
↓ 2 callersFunctiongetBasePath
()
packages/next-intl/src/navigation/shared/utils.tsx:246
↓ 2 callersFunctiongetBestMatchingDomain
( curHostDomain: DomainConfig<AppLocales> | undefined, locale: Locale, domainsConfig: DomainsConfig<AppL
packages/next-intl/src/middleware/utils.tsx:288
↓ 2 callersMethodgetCatalogLocales
()
packages/next-intl/src/plugin/extractor/CatalogManager.tsx:142
↓ 2 callersFunctiongetCurrentVersion
()
packages/next-intl/src/plugin/nextFlags.tsx:3
↓ 2 callersFunctiongetDefaultProjectRoot
()
packages/extractor/src/utils.ts:29
↓ 2 callersFunctiongetHost
(requestHeaders: Headers)
packages/next-intl/src/middleware/utils.tsx:273
↓ 2 callersFunctiongetInternalTemplate
( pathnames: AppPathnames, pathname: string, locale: AppLocales[number] )
packages/next-intl/src/middleware/utils.tsx:24
↓ 2 callersMethodgetLastModified
(locale: Locale)
packages/messages/src/catalog/CatalogPersister.ts:100
↓ 2 callersFunctiongetLocaleAsPrefix
(locale: string)
packages/next-intl/src/shared/utils.tsx:123
↓ 2 callersFunctiongetLocaleFromCookie
( routing: Pick< ResolvedRoutingConfig< AppLocales, AppLocalePrefixMode, AppPathnames,
packages/next-intl/src/middleware/resolveLocale.tsx:65
↓ 2 callersFunctiongetLocaleMessages
( messagesById: Map<string, ExtractorMessage>, localeMessages: Map<string, ExtractorMessage> | undefined,
packages/extractor/src/catalog/mergeMessages.ts:92
↓ 2 callersFunctiongetMessagesFromConfig
( config: Awaited<ReturnType<typeof getConfig>> )
packages/next-intl/src/server/react-server/getMessages.tsx:5
↓ 2 callersMethodgetPersister
()
packages/next-intl/src/plugin/extractor/CatalogManager.tsx:126
↓ 2 callersFunctiongetRouteParams
(template: string, pathname: string)
packages/next-intl/src/middleware/utils.tsx:222
↓ 2 callersFunctiongetSrcPaths
( config: ExtractorConfig, projectRoot: string )
packages/extractor/src/utils.ts:34
↓ 2 callersMethodgetSrcPaths
Absolute paths of the directories to watch for `update`.
packages/next-intl/src/plugin/extractor/ExtractionCompiler.tsx:33
↓ 2 callersMethodgetTargetLocales
()
packages/next-intl/src/plugin/extractor/CatalogManager.tsx:157
↓ 2 callersMethodget_results
(&self)
packages/swc-plugin-extractor/src/lib.rs:216
↓ 2 callersFunctiongroupSourceMessagesById
( messages: Array<SourceExtractedMessage> )
packages/extractor/src/catalog/mergeMessages.ts:18
↓ 2 callersFunctionhasLocalesToExtract
( config: Pick<ExtractorConfig, 'extract'> )
packages/next-intl/src/extractor/utils.tsx:3
↓ 2 callersFunctionhasPathnamePrefixed
( prefix: string | undefined, pathname: string )
packages/next-intl/src/shared/utils.tsx:46
↓ 2 callersFunctionhasToken
(template: ParsedTemplate, name: TokenName)
packages/messages/src/catalog/pathTemplate.ts:138
↓ 2 callersFunctioninitializeConfig
({formats, getMessageFallback, messages, onError, ...rest}: Props)
packages/use-intl/src/core/initializeConfig.tsx:8
↓ 2 callersFunctionisBuiltInFormat
( format: MessagesFormat )
packages/messages/src/format/index.ts:21
↓ 2 callersFunctionisExtractorOwnedKey
(key: string)
packages/extractor/src/catalog/mergeMessages.ts:14
↓ 2 callersFunctionisLocalizableHref
(href: Href)
packages/next-intl/src/shared/utils.tsx:25
↓ 2 callersMethodisWithinPath
(targetPath: string, basePath: string)
packages/extractor/src/source/SourceFileFilter.ts:51
↓ 2 callersMethodloadLocaleMessages
( locale: Locale )
packages/next-intl/src/plugin/extractor/CatalogManager.tsx:223
↓ 2 callersMethodlocal_name
A unique local identifier to avoid conflicts with existing imports.
packages/swc-plugin-extractor/src/lib.rs:165
↓ 2 callersFunctionmemoFn
( fn: Fn, cache: Record<string, ReturnType<Fn> | undefined> )
packages/use-intl/src/core/formatters.tsx:43
↓ 2 callersFunctionmergeLocale
Merges one locale's catalog across groups (later groups win), or `undefined` if no group has it.
packages/messages/src/catalog/loadCatalogs.ts:435
↓ 2 callersFunctionmissingSourceError
(input: { entries: Array<ParsedPathEntry>; rootDir: string; sourceLocale: string; extension: string;
packages/messages/src/catalog/loadCatalogs.ts:466
↓ 2 callersFunctionnormalizeExtractorConfig
( input: Omit<ExtractorConfigInput, 'messages'> & { messages?: ExtractorConfigInput['messages']; } )
packages/next-intl/src/extractor/normalizeExtractorConfig.tsx:21
↓ 2 callersFunctionnormalizeMessagesCatalogPaths
( messagesPath: string | Array<string> )
packages/next-intl/src/extractor/normalizeExtractorConfig.tsx:12
↓ 2 callersFunctionnormalizePathToPosix
(filePath: string)
packages/extractor/src/utils.ts:5
↓ 2 callersFunctionnotSupported
* Allows to import `next-intl/server` in non-RSC environments. * * This is mostly relevant for testing, since e.g. a `generateMetadata` * export fr
packages/next-intl/src/server/react-client/index.tsx:20
↓ 2 callersMethodonChange
()
packages/next-intl/src/plugin/extractor/CatalogLocales.tsx:94
↓ 2 callersFunctiononce
(namespace: string)
packages/next-intl/src/plugin/utils.tsx:18
↓ 2 callersFunctionoptimizeResult
( result: Array<string | RichTextElement> )
packages/icu-minify/src/format.tsx:431
↓ 2 callersFunctionparse
(cm: &SourceMap, code: &str)
packages/swc-plugin-extractor/tests/fixture.rs:41
↓ 2 callersFunctionparsePathEntry
( entry: MessagesPathEntry, codecKind: 'separate' | 'shared' = 'separate' )
packages/messages/src/catalog/pathTemplate.ts:104
↓ 2 callersFunctionprefixPathname
(pathname: string)
packages/next-intl/src/middleware/getAlternateLinksHeaderValue.tsx:94
↓ 2 callersFunctionprefixPathname
(prefix: string, pathname: string)
packages/next-intl/src/shared/utils.tsx:33
↓ 2 callersFunctionpruneUndefined
* Turbopack validates loader options by comparing them to their JSON round-trip * (`isDeepStrictEqual(options, JSON.parse(JSON.stringify(options)))`)
packages/next-intl/src/plugin/getNextConfig.tsx:43
↓ 2 callersFunctionreadIfExists
( filePath: string )
packages/messages/src/catalog/readCatalogFile.ts:37
↓ 2 callersMethodreadTargetLocales
()
packages/next-intl/src/plugin/extractor/CatalogLocales.tsx:40
↓ 2 callersFunctionrenderMessage
( message: string, values?: TranslationValues, formats?: Formats, providerProps?: Partial<ComponentPro
packages/use-intl/src/react/useTranslations.test.tsx:43
↓ 2 callersFunctionresolveLocaleFromPrefix
( routing: Omit< ResolvedRoutingConfig< AppLocales, AppLocalePrefixMode, AppPathnames,
packages/next-intl/src/middleware/resolveLocale.tsx:90
↓ 2 callersFunctionresolveNamespace
( namespace: string, namespacePrefix: string )
packages/use-intl/src/core/resolveNamespace.tsx:5
↓ 2 callersFunctionresolveTargetLocales
( discovered: Array<string>, sourceLocale: string, locales: 'infer' | ReadonlyArray<string> | undefined
packages/messages/src/catalog/loadCatalogs.ts:451
↓ 2 callersFunctionsanitizePathname
(pathname: string)
packages/next-intl/src/middleware/utils.tsx:336
↓ 2 callersMethodsave
()
packages/next-intl/src/plugin/extractor/CatalogManager.tsx:456
↓ 2 callersMethodsaveLocale
(locale: Locale)
packages/next-intl/src/plugin/extractor/CatalogManager.tsx:468
↓ 2 callersMethodscheduleSave
()
packages/next-intl/src/plugin/extractor/SaveScheduler.tsx:39
↓ 2 callersMethodspan_range
The span as file-relative UTF-8 byte offsets, or `None` without a source map (spans are absolute within the source map's address space, so they can't
packages/swc-plugin-extractor/src/lib.rs:223
↓ 2 callersFunctionstripNamespacePrefix
( messages: Array<ExtractorMessage>, namespace: string | undefined )
packages/messages/src/catalog/namespacePrefix.ts:22
↓ 2 callersFunctionstripTrailingSlash
(dirPath: string)
packages/next-intl/src/extractor/normalizeExtractorConfig.tsx:4
↓ 2 callersFunctionsyncLocaleCookie
( localeCookie: InitializedLocaleCookieConfig, locale: Locale, nextLocale?: Locale )
packages/next-intl/src/navigation/shared/syncLocaleCookie.tsx:10
↓ 2 callersFunctiont
(msg)
packages/swc-plugin-extractor/tests/fixture/shadow/output.js:6
↓ 2 callersFunctiontemplateToRegex
(template: string)
packages/next-intl/src/shared/utils.tsx:127
↓ 2 callersFunctiontoDecodeError
(error: unknown, filePath: string)
packages/messages/src/catalog/readCatalogFile.ts:52
↓ 2 callersMethodtrackEvent
({ data, name }: { data?: Record<string, string>; name: string; })
docs/src/services/ServerTracker.tsx:4
↓ 2 callersFunctiontranslateBaseFn
( /** Use a dot to indicate a level of nesting (e.g. `namespace.nestedLabel`). */ key: string, /**
packages/use-intl/src/core/createBaseTranslator.tsx:168
↓ 2 callersFunctionunprefixPathname
(pathname: string, prefix: string)
packages/next-intl/src/shared/utils.tsx:29
↓ 2 callersMethodupdate
* Re-extracts the files that changed. Events that arrive during the initial * `extractAll` are processed once it's done.
packages/next-intl/src/plugin/extractor/ExtractionCompiler.tsx:41
↓ 2 callersFunctionuseBasePathname
(config: { localePrefix: LocalePrefixConfigVerbose<AppLocales, AppLocalePrefixMode>; defaultLocale?: AppLo
packages/next-intl/src/navigation/react-client/useBasePathname.tsx:16
↓ 2 callersFunctionuseFormatter
()
packages/use-intl/src/react/useFormatter.tsx:5
↓ 2 callersFunctionuseLocationHash
()
docs/src/hooks/useLocationHash.tsx:7
↓ 2 callersFunctionuseMDXComponents
(components: MDXComponents)
examples/example-app-router-playground/src/mdx-components.tsx:3
↓ 2 callersFunctionvalidateLocale
(locale: string)
packages/next-intl/src/server/react-server/validateLocale.tsx:1
↓ 2 callersFunctionwaitForWriteFileCalls
( length: number, opts: {atLeast?: boolean; timeout?: number} = {} )
packages/next-intl/src/plugin/extractor/ExtractionCompiler.test.tsx:2187
↓ 2 callersFunctionwarnAboutMissingReferences
( messages: Array<ExtractorMessage>, warn: (message: string) => void )
packages/messages/src/utils.ts:3
↓ 2 callersFunctionwithTempEdit
( appRoot: string, filePath: string, newContent: string )
e2e/utils/src/temp-files.ts:4
↓ 2 callersFunctionwithTempFile
( appRoot: string, filePath: string, content: string )
e2e/utils/src/temp-files.ts:17
↓ 2 callersFunctionwithTempRemove
( appRoot: string, filePath: string )
e2e/utils/src/temp-files.ts:42
↓ 2 callersMethodwrite
( messages: Array<ExtractorMessage>, context: { locale: Locale; sourceMessagesById: Map<st
packages/messages/src/catalog/CatalogPersister.ts:64
↓ 1 callersFunctionNextIntlClientProviderServer
({ formats, locale, messages, now, timeZone, ...rest }: Props)
packages/next-intl/src/react-server/NextIntlClientProviderServer.tsx:9
↓ 1 callersFunctionaddTurboRule
( rules: Record<string, TurbopackRuleConfigCollection>, glob: string, rule: TurbopackRuleConfigIte
packages/next-intl/src/plugin/getNextConfig.tsx:166
↓ 1 callersFunctionapplyCapture
( captures: {locale?: Locale; namespace?: string}, name: TokenName, value: string, localeCodes: Locale
packages/messages/src/catalog/pathTemplate.ts:405
↓ 1 callersFunctionapplyPathnamePrefix
( pathname: string, locale: Locales[number], routing: Pick< ResolvedRoutingConfig< AppLocales,
packages/next-intl/src/navigation/shared/utils.tsx:255
↓ 1 callersMethodareSourceMessageArraysEqual
( messages1: Array<SourceExtractedMessage>, messages2: Array<SourceExtractedMessage> )
packages/next-intl/src/plugin/extractor/CatalogManager.tsx:430
↓ 1 callersMethodareSourceMessagesEqual
( msg1: SourceExtractedMessage, msg2: SourceExtractedMessage )
packages/next-intl/src/plugin/extractor/CatalogManager.tsx:442
↓ 1 callersFunctionassertMigrated
(content: string)
packages/messages/src/format/codecs/BuiltInPoCodec.ts:9
↓ 1 callersFunctionassertNoArrayMessages
(messages: Array<ExtractorMessage>)
packages/messages/src/catalog/CatalogPersister.ts:113
← previousnext →101–200 of 892, ranked by callers