UNPKG

poe-i18n

Version:

i18n utility for Path of Exile

26 lines (25 loc) 763 B
import { Options as FormatStatsOptions, Stat } from './stats'; export { Stat } from './stats'; export declare type Options = { resolveWordConflict: (words: string[]) => string; } & FormatStatsOptions; /** * tries to find a string that describes the given mods * * given a list of mods where a mod consists of at least one stat * get a translation t of that mod and consider it a row * split t into words and consider every word as a column * collapse the table into a single row * columns with different words get resolved by a given strategy * * * * Adds # to Fire Gems * Adds # to Cold Gems * ---- * Adds # to * Gems * * @param mods * @param options */ export default function groupMod(mods: Stat[][], options?: Partial<Options>): string;