@autobusal/providers 1.35.0 → 1.36.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/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # Changelog
2
2
 
3
+ ## 1.36.0
4
+
5
+ ### Added
6
+
7
+ - **`LabelSettings.locales`** - `{default, available}`, an admin-editable override of `preferences.languages` (which UI locales this label's site responds to, and its default). Null until the new admin-label Locales tab saves one, in which case `preferences.languages` keeps coming from the label's settings.json file exactly as before.
8
+
3
9
  ## 1.35.0
4
10
 
5
11
  ### Changed
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@autobusal/providers",
3
- "version": "1.35.0",
3
+ "version": "1.36.0",
4
4
  "author": "Ferjolt Ozuni",
5
5
  "type": "module",
6
6
  "main": "index.ts"
package/types/settings.ts CHANGED
@@ -140,6 +140,19 @@ export interface LabelSettings {
140
140
  currency: string
141
141
  affiliate_max_tickets: number
142
142
 
143
+ /**
144
+ * Edited: Ferjolt Ozuni - Date: 2026-08-10
145
+ * Admin-editable override of `preferences.languages` (the label's active
146
+ * UI locales) - null until an admin saves the Locales tab, in which case
147
+ * `preferences.languages` keeps coming from the label's settings.json
148
+ * file, same as before this existed. See Labels\AdminController::
149
+ * locales() and the add_locales_to_labels_settings migration.
150
+ */
151
+ locales?: {
152
+ default: string
153
+ available: string[]
154
+ } | null
155
+
143
156
  legal: {
144
157
  kop: string
145
158
  njb: string