Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/amannn/next-intl
/ functions
Functions
892 in github.com/amannn/next-intl
⨍
Functions
892
◇
Types & classes
71
↓ 1 callers
Function
assertOneFilePerLocale
* Two files claiming one locale is what a `messages.codes` mapping looks like * when its code is also how another locale writes its own files. Which
packages/messages/src/catalog/loadCatalogs.ts:307
↓ 1 callers
Function
assertUnambiguousCodes
* A mapped code that collides with another locale's tag (or mapped code) * would make a matched file ambiguous.
packages/messages/src/catalog/loadCatalogs.ts:331
↓ 1 callers
Function
assert_json
Compares `actual` against the JSON at `path`, or rewrites it with `UPDATE=1`.
packages/swc-plugin-extractor/tests/fixture.rs:115
↓ 1 callers
Method
bind_translator
If `call` invokes a tracked next-intl hook, registers `name` as a translator binding and rewrites `useExtracted` / `getExtracted` callees to the real
packages/swc-plugin-extractor/src/lib.rs:509
↓ 1 callers
Function
buildGroups
(input: { discoveries: Array<Discovery>; allowed: Set<string>; sourceLocale: string; codecFactory(): S
packages/messages/src/catalog/loadCatalogs.ts:368
↓ 1 callers
Function
buildMessages
* Builds a nested messages object from decoded messages, mirroring the shape * produced by `precompileMessages` but keeping the raw message strings.
packages/next-intl/src/plugin/catalog/catalogLoader.tsx:102
↓ 1 callers
Function
buildTypes
()
tools/src/getBuildConfig.js:13
↓ 1 callers
Function
byId
(messages: Array<Message>)
packages/format-po/src/index.test.ts:6
↓ 1 callers
Function
calculateRelativeTimeValue
( seconds: number, unit: Intl.RelativeTimeFormatUnit )
packages/use-intl/src/core/createFormatter.tsx:65
↓ 1 callers
Function
callHook
(name: string, hook: Function)
packages/next-intl/src/react-client/index.tsx:27
↓ 1 callers
Function
changeLocaleAction
(locale: Locale)
examples/example-app-router-extracted/src/app/layout.tsx:27
↓ 1 callers
Function
changeLocaleAction
(locale: Locale)
examples/example-app-router-without-i18n-routing/src/app/layout.tsx:19
↓ 1 callers
Function
checkDirectoryExists
(obj: any, dirPath: string)
packages/next-intl/src/plugin/extractor/ExtractionCompiler.test.tsx:2274
↓ 1 callers
Function
checkMobile
()
docs/src/hooks/useIsMobile.tsx:7
↓ 1 callers
Function
compareReferences
( refA: ExtractorMessageReference, refB: ExtractorMessageReference )
packages/extractor/src/utils.ts:17
↓ 1 callers
Function
compileDate
(node: DateElement)
packages/icu-minify/src/compile.tsx:148
↓ 1 callers
Function
compileNode
(node: MessageFormatElement)
packages/icu-minify/src/compile.tsx:80
↓ 1 callers
Function
compileNumber
(node: NumberElement)
packages/icu-minify/src/compile.tsx:116
↓ 1 callers
Function
compileNumberStyle
( style: NumberElement['style'] )
packages/icu-minify/src/compile.tsx:127
↓ 1 callers
Function
compilePath
(value: string)
packages/next-intl/src/navigation/shared/utils.tsx:126
↓ 1 callers
Function
compilePlural
(node: PluralElementBase)
packages/icu-minify/src/compile.tsx:196
↓ 1 callers
Function
compileSelect
(node: SelectElement)
packages/icu-minify/src/compile.tsx:185
↓ 1 callers
Function
compileTag
(node: TagElement)
packages/icu-minify/src/compile.tsx:213
↓ 1 callers
Function
compileTime
(node: TimeElement)
packages/icu-minify/src/compile.tsx:159
↓ 1 callers
Function
createBaseTranslatorImpl
({ cache, formats: globalFormats, formatters, getMessageFallback = defaultGetMessageFallback, locale
packages/use-intl/src/core/createBaseTranslator.tsx:141
↓ 1 callers
Function
createBrowser
(...domains: string[])
examples/example-app-router-playground/tests/domains-locale-prefix.spec.ts:17
↓ 1 callers
Function
createDeclaration
(content: string)
packages/next-intl/src/plugin/declaration/createMessagesDeclaration.tsx:78
↓ 1 callers
Function
createDialog
(first: string, second: string)
packages/next-intl/src/plugin/extractor/ExtractionCompiler.test.tsx:1048
↓ 1 callers
Function
createENOENTError
(filePath: string)
packages/next-intl/src/plugin/extractor/ExtractionCompiler.test.tsx:2526
↓ 1 callers
Function
createFile
* Test utils
packages/next-intl/src/plugin/extractor/ExtractionCompiler.test.tsx:2177
↓ 1 callers
Function
createHandler
(fn: Fn)
packages/next-intl/src/navigation/react-client/createNavigation.tsx:73
↓ 1 callers
Function
createJsonCatalogUtils
(messagesDir: string)
e2e/extracted-json/tests/catalog-utils.ts:5
↓ 1 callers
Function
createMemoCache
( store: Record<string, Value | undefined> )
packages/use-intl/src/core/formatters.tsx:26
↓ 1 callers
Function
createMessageFormatter
( cache: IntlCache, intlFormatters: IntlFormatters )
packages/use-intl/src/core/format-message/compile-format.tsx:17
↓ 1 callers
Function
createMessagesDeclaration
( messagesPaths: Array<string> )
packages/next-intl/src/plugin/declaration/createMessagesDeclaration.tsx:8
↓ 1 callers
Function
createMockRequest
( pathnameWithSearch = '/', acceptLanguageLocale = 'en', host = 'http://localhost:3000', localeCookieV
packages/next-intl/src/middleware/middleware.test.tsx:45
↓ 1 callers
Function
createNavigation
( routing?: [AppPathnames] extends [never] ? | RoutingConfigSharedNavigation< AppLocales,
packages/next-intl/src/navigation/react-server/createNavigation.tsx:14
↓ 1 callers
Function
createNodeModule
(moduleName: string)
packages/next-intl/src/plugin/extractor/ExtractionCompiler.test.tsx:1911
↓ 1 callers
Function
createPage
(browser: Browser, acceptLanguage: string)
examples/example-app-router-playground/tests/domains-locale-prefix.spec.ts:28
↓ 1 callers
Function
createPoCatalogUtils
(messagesDir: string)
e2e/extracted-po/tests/catalog-utils.ts:12
↓ 1 callers
Function
createResponse
(init: MiddlewareResponseInit)
packages/next-intl/src/middleware/middleware.test.tsx:24
↓ 1 callers
Function
createTranslatorImpl
( {messages, namespace, ...rest}: CreateTranslatorImplProps<Messages>, namespacePrefix: string )
packages/use-intl/src/core/createTranslatorImpl.tsx:18
↓ 1 callers
Function
dateTime
( value: Date | number, formatOrOptions?: FormatNames['dateTime'] | DateTimeFormatOptions, overrid
packages/use-intl/src/core/createFormatter.tsx:181
↓ 1 callers
Function
decodeSharedFile
`undefined` when the file vanished since discovery.
packages/messages/src/catalog/loadCatalogs.ts:287
↓ 1 callers
Function
defineCodec
(factory: () => ExtractorCodec)
packages/messages/src/format/ExtractorCodec.ts:20
↓ 1 callers
Function
detectShape
(meta: Record<string, string> | undefined)
packages/format-po/src/index.ts:37
↓ 1 callers
Function
encodeBack
( codec: ReturnType<typeof createJsonCodec>, messages: Array<Message> )
packages/format-json/src/index.test.ts:32
↓ 1 callers
Function
encodePathname
(pathname: string)
packages/next-intl/src/navigation/shared/utils.tsx:188
↓ 1 callers
Function
entryDisplayPath
The user-facing string identifying an entry in errors and reports.
packages/messages/src/catalog/loadCatalogs.ts:362
↓ 1 callers
Function
exampleFile
(template: ParsedTemplate)
packages/messages/src/catalog/loadCatalogs.ts:510
↓ 1 callers
Function
expandDirectoryDeleteEvents
( events: Array<SourceFileEvent>, prevKnownFiles: Array<string> )
packages/next-intl/src/plugin/extractor/SourceFileEvents.tsx:75
↓ 1 callers
Function
expectCatalog
( file: string, predicate: (content: string) => boolean, opts?: {timeout?: number} )
e2e/extracted-po/tests/catalog-utils.ts:14
↓ 1 callers
Function
expectCatalog
( file: string, expected: Record<string, unknown>, opts?: {timeout?: number} )
e2e/extracted-json/tests/catalog-utils.ts:7
↓ 1 callers
Function
expectCatalogPredicate
( file: string, predicate: (json: Record<string, unknown>) => boolean, opts?: {timeout?: num
e2e/extracted-json/tests/catalog-utils.ts:32
↓ 1 callers
Function
expectDocumentLang
(lang: string)
examples/example-app-router-playground/tests/locale-prefix-never.spec.ts:7
↓ 1 callers
Function
expectFormatted
( style: 'time' | 'date', format: 'full' | 'long' | 'medium' | 'short', result: string )
packages/use-intl/src/react/useTranslations.test.tsx:141
↓ 1 callers
Function
expectIterableReactElement
(v: Iterable<ReactElement>)
packages/use-intl/src/react/useFormatter.test.tsx:692
↓ 1 callers
Function
expectNoCookie
()
examples/example-app-router-playground/tests/locale-cookie-false.spec.ts:4
↓ 1 callers
Function
expectString
(v: string)
packages/use-intl/src/react/useFormatter.test.tsx:658
↓ 1 callers
Function
extract
( format: 'json' | 'po', { codes, locales = 'infer', path: messagesPath = './messages' }: Pa
packages/extractor/src/extractMessages.test.ts:30
↓ 1 callers
Function
extractFile
( extractor: MessageExtractor, absoluteFilePath: string )
packages/extractor/src/extractMessages.ts:153
↓ 1 callers
Function
extractMessages
(params: ExtractorConfigInput)
packages/next-intl/src/extractor/extractMessages.tsx:8
↓ 1 callers
Function
extractMessages
( config: ExtractorConfig, opts: {projectRoot?: string; warn?(message: string): void} = {} )
packages/extractor/src/extractMessages.ts:37
↓ 1 callers
Function
extractWithDelayedFile
(delayedFileName: string)
packages/next-intl/src/plugin/extractor/ExtractionCompiler.test.tsx:1108
↓ 1 callers
Method
extract_message
Records an inline `useExtracted` / `getExtracted` message and rewrites the call to reference the generated key.
packages/swc-plugin-extractor/src/lib.rs:307
↓ 1 callers
Function
findDomainFromHost
( requestHeaders: Headers, domains: DomainsConfig<AppLocales> )
packages/next-intl/src/middleware/resolveLocale.tsx:15
↓ 1 callers
Function
formatDateTimeValue
( name: string, style: DateTimeStyle | undefined, locale: string, values: FormatValues<RichTextElement
packages/icu-minify/src/format.tsx:335
↓ 1 callers
Function
formatMessage
( /** The precompiled ICU message (CompiledMessage from icu-minify) */ ...[, message, values, options]: Pa
packages/use-intl/src/core/format-message/format-only.tsx:10
↓ 1 callers
Function
formatMessage
( message: CompiledMessage, locale: string, values: FormatValues<T>, options?: Omit<FormatOptions, 'fo
packages/icu-minify/test/roundtrip.test.ts:12
↓ 1 callers
Function
formatNumberValue
( name: string, style: NumberStyle | undefined, locale: string, values: FormatValues<RichTextElement>,
packages/icu-minify/src/format.tsx:317
↓ 1 callers
Function
formatPathname
( pathname: string, prefix: string | undefined, search: string | undefined )
packages/next-intl/src/middleware/utils.tsx:256
↓ 1 callers
Function
formatPlural
( name: string, options: PluralOptions, locale: string, values: FormatValues<RichTextElement>, forma
packages/icu-minify/src/format.tsx:252
↓ 1 callers
Function
formatSelect
( name: string, options: SelectOptions, locale: string, values: FormatValues<RichTextElement>, forma
packages/icu-minify/src/format.tsx:231
↓ 1 callers
Function
formatStars
(amount: number)
docs/src/components/GitHubStarsLinkButton.tsx:25
↓ 1 callers
Function
formatTag
( name: string, children: Array<CompiledNode>, locale: string, values: FormatValues<RichTextElement>,
packages/icu-minify/src/format.tsx:399
↓ 1 callers
Method
formatToParts
* A version of the format method which it returns an array of objects * which represent "parts" of the object, * separating the formatted
packages/next-intl/types/index.d.ts:174
↓ 1 callers
Function
formatWithIntlMessageFormat
(message: string, val: Date | number)
packages/use-intl/src/core/createTranslator.format-only.test.tsx:192
↓ 1 callers
Function
generateMetadata
()
examples/example-app-router-playground/src/app/[locale]/nested/page.tsx:6
↓ 1 callers
Function
generateRSS
(blogPosts)
docs/scripts/generate-rss.mjs:97
↓ 1 callers
Function
getAlternateEntry
(url: URL, locale: AppLocales[number])
packages/next-intl/src/middleware/getAlternateLinksHeaderValue.tsx:64
↓ 1 callers
Function
getAlternateLinks
(response: Response)
examples/example-app-router-playground/tests/domains-locale-prefix.spec.ts:9
↓ 1 callers
Function
getBlogPosts
* Dynamically discover and parse blog posts from MDX files
docs/scripts/generate-rss.mjs:61
↓ 1 callers
Function
getBundleConfig
({ env, external = [], input, output = undefined, plugins = [], ...rest })
tools/src/getBuildConfig.js:35
↓ 1 callers
Function
getCachedRequestLocale
()
packages/next-intl/src/server/react-server/RequestLocaleCache.tsx:12
↓ 1 callers
Function
getCalls
(namespace: string)
packages/next-intl/src/react-server/useTranslations.test.tsx:212
↓ 1 callers
Function
getCanonicalPathname
()
examples/example-app-router-playground/tests/main.spec.ts:704
↓ 1 callers
Function
getCanonicalPathname
()
examples/example-app-router-playground/tests/base-path.spec.ts:94
↓ 1 callers
Function
getCatalogLoaderConfig
()
packages/next-intl/src/plugin/getNextConfig.tsx:137
↓ 1 callers
Function
getCodec
( options: CatalogLoaderConfig, projectRoot: string )
packages/next-intl/src/plugin/catalog/catalogLoader.tsx:39
↓ 1 callers
Method
getCodec
()
packages/next-intl/src/plugin/extractor/CatalogManager.tsx:116
↓ 1 callers
Function
getDateTimeFormatOptions
( style: DateTimeStyle | undefined, type: 'date' | 'time', formatOptions: FormatOptions )
packages/icu-minify/src/format.tsx:380
↓ 1 callers
Function
getDefaultProjectRoot
()
packages/next-intl/src/extractor/utils.tsx:10
↓ 1 callers
Function
getDirectoryContents
(obj: any, dirPath: string)
packages/next-intl/src/plugin/extractor/ExtractionCompiler.test.tsx:2300
↓ 1 callers
Method
getDisplayPath
(locale: Locale)
packages/messages/src/catalog/CatalogPersister.ts:26
↓ 1 callers
Function
getExtractMessagesLoaderConfig
(config: ExtractorConfig)
packages/next-intl/src/plugin/getNextConfig.tsx:128
↓ 1 callers
Function
getFilePath
(locale: Locale)
packages/messages/src/catalog/getMessagesFiles.ts:37
↓ 1 callers
Function
getGlobalNow
()
packages/use-intl/src/core/createFormatter.tsx:256
↓ 1 callers
Function
getHash
()
docs/src/hooks/useLocationHash.tsx:3
↓ 1 callers
Function
getInvokeRouter
(useRouter: () => Router)
packages/next-intl/src/navigation/react-client/createNavigation.test.tsx:98
↓ 1 callers
Function
getLastWrite
()
packages/next-intl/src/plugin/extractor/ExtractionCompiler.test.tsx:1058
← previous
next →
201–300 of 892, ranked by callers