Skip to content

Commit d2aad7b

Browse files
committed
docs(data-modeling): name i18n.defaultLocale as the seed locale's default supplier
1 parent 581ef07 commit d2aad7b

1 file changed

Lines changed: 13 additions & 3 deletions

File tree

content/docs/data-modeling/seed-data.mdx

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -215,11 +215,21 @@ is made when the seeds load rather than when your config is assembled — so
215215
switching markets does not mean rebuilding, and the axis is evaluated in the one
216216
layer that could ever reconcile rows already written for another market.
217217

218+
<Callout type="info">
219+
**Where the loading locale comes from.** On the normal boot path your stack
220+
supplies it: the runtime reads your app's `i18n.defaultLocale` and passes it to
221+
the seed loader, so declaring a locale on a dataset takes effect with no extra
222+
wiring. Declare no `i18n` block and no locale is sent at all — which is the
223+
unrestricted setting, not a filter.
224+
</Callout>
225+
218226
<Callout type="warn">
219227
The axis is evaluated against the seed loader's `config.locale`. A host that
220-
supplies no locale gets **every** dataset, and the loader warns naming each
221-
locale-scoped dataset it let through — so a scope that is not taking effect is
222-
one log line to diagnose rather than a silent no-op.
228+
supplies no locale — an app with no declared `i18n.defaultLocale`, or an
229+
embedding host that builds its own seed-load request — gets **every** dataset,
230+
and the loader warns naming each locale-scoped dataset it let through, so a
231+
scope that is not taking effect is one log line to diagnose rather than a
232+
silent no-op.
223233
</Callout>
224234

225235
---

0 commit comments

Comments
 (0)