@goodandready/dsh-subscriptions 0.4.11 → 0.4.12
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/lib/usage.js +4 -3
- package/package.json +1 -1
package/lib/usage.js
CHANGED
|
@@ -58,13 +58,14 @@ const WINDOW_LABELS = {
|
|
|
58
58
|
weekly_limit_7_days: { ru: "7д", en: "7d" },
|
|
59
59
|
primary: { ru: "осн.", en: "primary" },
|
|
60
60
|
secondary: { ru: "втор.", en: "secondary" },
|
|
61
|
-
|
|
62
|
-
|
|
61
|
+
// codex: vendor API отдаёт primary_window/secondary_window — для UI читаем как 5h/7d
|
|
62
|
+
primary_window: { ru: "5ч", en: "5h" },
|
|
63
|
+
secondary_window: { ru: "7д", en: "7d" },
|
|
63
64
|
monthly: { ru: "месяц", en: "month" },
|
|
64
65
|
credits: { ru: "кредиты", en: "credits" },
|
|
65
66
|
}
|
|
66
67
|
|
|
67
|
-
function windowLabel(id) {
|
|
68
|
+
export function windowLabel(id) {
|
|
68
69
|
const known = WINDOW_LABELS[id]
|
|
69
70
|
return known || { ru: id, en: id }
|
|
70
71
|
}
|
package/package.json
CHANGED