UNPKG

@singleton-i18n/js-core-sdk

Version:

A JavaScript Singleton client library for internationalization and localization that leverage data from Singleton service. The library works both for the browser and as a Node.js module.

15 lines (14 loc) 464 B
import { I18nService } from '../services/i18n.service'; export declare class MessageFormat { private i18nService; private locale; constructor(i18nService: I18nService); format(locale: string, message: string, args: any): string; interpret(ast: any[], args?: any[] | {}): string; private interpretAST; private interpretElement; private interpretPlural; private interpretNumber; private getFunctionName; private getArg; }