UNPKG

@jargon/platform-sdk-core

Version:

Core components of the Jargon Platform SDK for node.js

15 lines (14 loc) 850 B
import { Platform, ResourceManager, ResourceManagerFactory, ResourceManagerOptions } from '.'; import { LocaleData, JargonResourceManager } from './jrm'; export declare class JargonResourceManagerFactory implements ResourceManagerFactory { protected _opts: Required<ResourceManagerOptions>; protected _initPromise: Promise<void>; protected _intialized: boolean; protected _localeData: Map<string, LocaleData>; protected _fallbacks: Record<string, string[]>; constructor(options?: ResourceManagerOptions); protected _doInit(): Promise<void>; forLocaleAndPlatform(locale: string, platform: Platform): Promise<ResourceManager>; protected _makeResourceManager(locale: string, platform: Platform, fallbacks: JargonResourceManager[]): JargonResourceManager; } export declare function normalizeLocale(l: string): string;