Skip to content

Commit d56c294

Browse files
committed
docs(spec): Seed.locale names the reseeding user in its describe, and says an organization-less load still reads the environment or global locale setting
Co-authored-by: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01L6bhgTqqeHSwZYJmApbDCa
1 parent 871582d commit d56c294

1 file changed

Lines changed: 7 additions & 4 deletions

File tree

‎packages/spec/src/data/seed.zod.ts‎

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -272,9 +272,12 @@ export const SeedSchema = lazySchema(() => strictObject({
272272
* install, the sample-data reseed, the restart heal and the
273273
* per-organization replay filter on the locale resolved for that load by
274274
* `resolveSeedLocaleForLoad` (`@objectstack/runtime`), first answer wins:
275-
* the `localization.locale` setting for the organization the rows land in,
276-
* counted only when somebody set it (a value whose `source` is `'default'`
277-
* is the platform's placeholder, not a choice); then the `sys_user.locale`
275+
* the `localization.locale` setting for the organization the rows land in
276+
* (a load that names no organization, such as a single-tenant install or
277+
* reseed or the restart heal, still reads it, and the environment override
278+
* or the `global` setting answers), counted only when somebody set it (a
279+
* value whose `source` is `'default'` is the platform's placeholder, not a
280+
* choice); then the `sys_user.locale`
278281
* of the user who installs, reseeds or founds the organization, when one
279282
* started the load; then the app's declared `i18n.defaultLocale`, when the
280283
* caller names one. No answer is a load with no locale, as above. A
@@ -287,7 +290,7 @@ export const SeedSchema = lazySchema(() => strictObject({
287290
* (2026-11-05).
288291
*/
289292
locale: z.array(LocaleSchema).min(1).optional()
290-
.describe('Applicable locales (BCP-47 tags); omitted applies to every locale. The boot seed filters on the app\'s i18n.defaultLocale; the marketplace install, sample-data reseed, restart heal and per-organization replay filter on the locale resolved for the load (the localization.locale setting when set, then the installing or founding user\'s locale, then the app\'s i18n.defaultLocale where the load names one); package apply and draft publish do not filter by locale — they load every dataset and warn'),
293+
.describe('Applicable locales (BCP-47 tags); omitted applies to every locale. The boot seed filters on the app\'s i18n.defaultLocale; the marketplace install, sample-data reseed, restart heal and per-organization replay filter on the locale resolved for the load (the localization.locale setting when set, then the locale of the installing, reseeding or founding user, then the app\'s i18n.defaultLocale where the load names one); package apply and draft publish do not filter by locale — they load every dataset and warn'),
291294

292295
/**
293296
* The Payload

0 commit comments

Comments
 (0)