UNPKG

ember-intl

Version:

Internationalization for Ember projects

18 lines 678 B
import Helper from '@ember/component/helper'; import type IntlService from '../services/intl.ts'; type FormatParameters = Parameters<IntlService['formatMessage']>; type Value = FormatParameters[0]; type Options = FormatParameters[1]; interface FormatMessageSignature { Args: { Named?: Options; Positional: [Value]; }; Return: string; } export default class FormatMessageHelper extends Helper<FormatMessageSignature> { intl: IntlService; compute([value]: FormatMessageSignature['Args']['Positional'], options: FormatMessageSignature['Args']['Named']): FormatMessageSignature['Return']; } export {}; //# sourceMappingURL=format-message.d.ts.map