@vocoder/cli 0.7.0 → 0.8.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/bin.mjs CHANGED
@@ -7,7 +7,7 @@ import {
7
7
  getPackagesToInstall,
8
8
  getSetupSnippets,
9
9
  loadVocoderConfig
10
- } from "./chunk-ADQ4WVOA.mjs";
10
+ } from "./chunk-7LFRSUPU.mjs";
11
11
 
12
12
  // src/bin.ts
13
13
  import { Command } from "commander";
@@ -50537,6 +50537,7 @@ var StringExtractor = class {
50537
50537
  let hasPlural = false;
50538
50538
  let hasSelect = false;
50539
50539
  let isOrdinal = false;
50540
+ let hasGender = false;
50540
50541
  for (const attr of attributes) {
50541
50542
  if (attr.type !== "JSXAttribute") continue;
50542
50543
  const name = attr.name.name;
@@ -50544,6 +50545,10 @@ var StringExtractor = class {
50544
50545
  isOrdinal = true;
50545
50546
  continue;
50546
50547
  }
50548
+ if (name === "gender") {
50549
+ hasGender = true;
50550
+ continue;
50551
+ }
50547
50552
  const value = attr.value?.type === "StringLiteral" ? attr.value.value : null;
50548
50553
  if (!value) continue;
50549
50554
  if (PLURAL_CLDR.has(name) || /^_\d+$/.test(name)) {
@@ -50557,7 +50562,11 @@ var StringExtractor = class {
50557
50562
  }
50558
50563
  }
50559
50564
  if (isOrdinal) {
50560
- return "{count, selectordinal, one {#st} two {#nd} few {#rd} other {#th}}";
50565
+ const ordinalICU = "{count, selectordinal, one {#st} two {#nd} few {#rd} other {#th}}";
50566
+ if (hasGender) {
50567
+ return `{gender, select, masculine {${ordinalICU}} feminine {${ordinalICU}} other {${ordinalICU}}}`;
50568
+ }
50569
+ return ordinalICU;
50561
50570
  }
50562
50571
  if (!hasPlural && !hasSelect) return null;
50563
50572
  if (hasPlural) {
@@ -50626,4 +50635,4 @@ export {
50626
50635
  loadVocoderConfig,
50627
50636
  StringExtractor
50628
50637
  };
50629
- //# sourceMappingURL=chunk-ADQ4WVOA.mjs.map
50638
+ //# sourceMappingURL=chunk-7LFRSUPU.mjs.map