From e65f7d3e5b7fd13fd8c2c138ad91fa64b1dcf972 Mon Sep 17 00:00:00 2001 From: =Xavier Date: Thu, 3 Oct 2024 16:12:24 +0800 Subject: [PATCH] fix typo of how to use toArray --- src/lib/text.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/text.js b/src/lib/text.js index 616d49c50..b2fb2549b 100644 --- a/src/lib/text.js +++ b/src/lib/text.js @@ -90,7 +90,7 @@ const toObject = (locale, separator) => { const pickOne = (locale) => { const text = locale; - const v = text.toArray(); + const v = toArray(text); let t = []; // use to stack the sentence(s) to be part of the current variant let variants = [];