27 lines
775 B
TypeScript
27 lines
775 B
TypeScript
// Module ID: 12182
|
|
// Function ID: 12183
|
|
// Name: getBarText
|
|
// Dependencies: [1233, 2]
|
|
// Exports: getBarText
|
|
|
|
// Module 12182 (getBarText)
|
|
import set from "set" /* 2 */;
|
|
import getSystemLocale from "getSystemLocale" /* 1233 */;
|
|
|
|
const result = set.fileFinishedImporting("modules/dice_roll/DiceRollUtils.tsx");
|
|
|
|
export const getBarText = function getBarText(flag, results) {
|
|
if (flag) {
|
|
const intl2 = getSystemLocale.intl;
|
|
let str = intl2.string(getSystemLocale.t["x/FIRX"]);
|
|
} else {
|
|
str = "";
|
|
if (null != results) {
|
|
const intl = getSystemLocale.intl;
|
|
const obj = { total: null };
|
|
obj[0] = results.reduce((arg0, arg1) => arg0 + arg1, 0);
|
|
str = intl.formatToPlainString(getSystemLocale.t.xU4pF1, obj);
|
|
}
|
|
}
|
|
return str;
|
|
};
|