Merge lang/i18nkeys (27024de) into lang/syntax: the vocabulary gains the text keys - the Key type, @TextKey (a registry's), the k"..." and kn"..." literals - and @Text's doc; docs/language pages for Key and @TextKey; ludic-dev syntax rewrote the grammars; reseeded, bootstrap-cfree fixpoint holds
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
commit
9f8aec3bc1
63 changed files with 145288 additions and 114562 deletions
12
docs/language/annotations/annot-textkey.md
Normal file
12
docs/language/annotations/annot-textkey.md
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
---
|
||||
id: annot-textkey
|
||||
name: @TextKey
|
||||
category: annotations
|
||||
kind: annotation
|
||||
tokens: @TextKey
|
||||
sig: @TextKey("steps") registry StepKinds of StepKind from "steps.lres"
|
||||
tip: The prefix of a registry's derived text keys, in place of its name in snake case.
|
||||
order: 73
|
||||
---
|
||||
|
||||
A registry's <code>@Text</code> fields are keyed <code><registry>.<row>.<field></code>, the registry's name in snake case (<code>GearKinds</code> is <code>gear_kinds</code>). <code>@TextKey("steps")</code> names the prefix instead, so its rows' keys are <code>steps.<row>.<field></code>. Every derived key is checked against the source language's <code>.po</code> (LANGUAGE.md, Text keys).
|
||||
Loading…
Add table
Add a link
Reference in a new issue