From 268a67c996d4e25819dabf0d8d1faf35ee3d19df Mon Sep 17 00:00:00 2001 From: "(quasar) nebula" Date: Sat, 23 May 2026 16:10:07 -0300 Subject: language: drop unitOnly --- src/data/things/Language.js | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) (limited to 'src/data/things') diff --git a/src/data/things/Language.js b/src/data/things/Language.js index 5265d851..dc8c0368 100644 --- a/src/data/things/Language.js +++ b/src/data/things/Language.js @@ -955,7 +955,6 @@ export class Language extends Thing { const countHelper = (stringKey, optionName = stringKey) => function(value, { unit = false, - unitOnly = false, blankIfZero = false, } = {}) { // Null or undefined value is blank content. @@ -969,16 +968,11 @@ const countHelper = (stringKey, optionName = stringKey) => } const string = - (unitOnly - ? `count.${stringKey}.unitOnly.` + this.getUnitForm(value) - : unit + (unit ? `count.${stringKey}.withUnit.` + this.getUnitForm(value) : `count.${stringKey}`); - const options = - (unitOnly - ? {} - : {[optionName]: this.formatNumber(value)}); + const options = {[optionName]: this.formatNumber(value)}; return this.formatString(string, options); }; -- cgit 1.3.0-6-gf8a5