ezmedicationinput 0.1.8 → 0.1.9
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/i18n.js +9 -0
- package/package.json +1 -1
package/dist/i18n.js
CHANGED
|
@@ -613,6 +613,9 @@ function formatShortThai(internal) {
|
|
|
613
613
|
.join(",");
|
|
614
614
|
parts.push(days);
|
|
615
615
|
}
|
|
616
|
+
if (internal.count !== undefined) {
|
|
617
|
+
parts.push(`x${stripTrailingZero(internal.count)}`);
|
|
618
|
+
}
|
|
616
619
|
const asNeeded = formatAsNeededThai(internal);
|
|
617
620
|
if (asNeeded) {
|
|
618
621
|
parts.push(asNeeded);
|
|
@@ -629,6 +632,9 @@ function formatLongThai(internal) {
|
|
|
629
632
|
const eventParts = collectWhenPhrasesThai(internal);
|
|
630
633
|
const timing = combineFrequencyAndEventsThai(frequencyPart, eventParts);
|
|
631
634
|
const dayPart = describeDayOfWeekThai(internal);
|
|
635
|
+
const countPart = internal.count !== undefined
|
|
636
|
+
? `จำนวน ${stripTrailingZero(internal.count)} ครั้ง`
|
|
637
|
+
: undefined;
|
|
632
638
|
const asNeeded = formatAsNeededThai(internal);
|
|
633
639
|
const segments = [dosePart];
|
|
634
640
|
if (routePart) {
|
|
@@ -643,6 +649,9 @@ function formatLongThai(internal) {
|
|
|
643
649
|
if (dayPart) {
|
|
644
650
|
segments.push(dayPart);
|
|
645
651
|
}
|
|
652
|
+
if (countPart) {
|
|
653
|
+
segments.push(countPart);
|
|
654
|
+
}
|
|
646
655
|
if (asNeeded) {
|
|
647
656
|
segments.push(asNeeded);
|
|
648
657
|
}
|