frontend/.pnpm-store/v3/files/f9/998d8c120f239f648e56cfc39c04a1e4c662c0d0e4d67c733fcf3b824e5a17e3be75afc01e72348e862ed69d19504aecdc70416da9e37687674eca2bc48b32-exec

14 lines
648 B
Plaintext
Executable File

import { MessageFormatElement } from './types';
/**
* Hoist all selectors to the beginning of the AST & flatten the
* resulting options. E.g:
* "I have {count, plural, one{a dog} other{many dogs}}"
* becomes "{count, plural, one{I have a dog} other{I have many dogs}}".
* If there are multiple selectors, the order of which one is hoisted 1st
* is non-deterministic.
* The goal is to provide as many full sentences as possible since fragmented
* sentences are not translator-friendly
* @param ast AST
*/
export declare function hoistSelectors(ast: MessageFormatElement[]): MessageFormatElement[];
//# sourceMappingURL=manipulator.d.ts.map