UNPKG

next-intl

Version:

Internationalization (i18n) for Next.js

10 lines (9 loc) 782 B
import type { ExtractorConfig, ExtractorMessage, ExtractorMessageReference } from './types.js'; export declare function normalizePathToPosix(filePath: string): string; export declare function isForbiddenObjectKey(key: string): boolean; export declare function hasLocalesToExtract(config: Pick<ExtractorConfig, 'extract'>): boolean; export declare function setNestedProperty(obj: Record<string, any>, keyPath: string, value: any): void; export declare function getSortedMessages(messages: Array<ExtractorMessage>): Array<ExtractorMessage>; export declare function localeCompare(a: string, b: string): number; export declare function compareReferences(refA: ExtractorMessageReference, refB: ExtractorMessageReference): number; export declare function getDefaultProjectRoot(): string;