Copy (the words)
Copy lives in copy/<lang>/*.edn, keyed by namespaced keywords (:p08/headline, :common/footer).
Every language must have the same keys (check lists gaps). Values are strings with light markup
(**strong**, *em*, newline = line break; \* for an asterisk, \\ for a backslash), nil (the language leaves that element out), or any EDN
(lists, maps) your page code knows how to read.
get_copy(all languages or one;prefix"p08/" for one page).set_copy{doc, lang, entries: {"p08/headline": "..."}}: existing keys are changed in the file that holds them, new keys go tocopy/<lang>/<namespace>.edn.entries_ednfor structured values.- Linked copy: a value every language shares (a name, the brand, a number) lives once in
copy/shared/*.edn; a language with no own value shows it (it is linked).link_copy {key, langs}links (the first language linked gives the shared text),unlink: truegives a language its own copy to translate. Partial links are fine: en and it share an artist's name, hy spells it its own way.set_copyon a linked language changes the shared value for all of them. - Stale flags: a change to a key flags every other language that has its own text for it (in
l10n.edn:{:flags {key {lang {:changed-in :en}}}}). A first translation flags nobody.copy_statuslists what needs updating;set_copythe language to update it (that clears its flag), orkeep_copy {key, langs}when its text should stay as it is. - Per-language layout tweaks: the key
:layout/overridesmaps an element:idto properties merged into it in that language only:{:p08/title-box {:w 900}}when Italian runs longer.
check names any key whose markup is wrong (an unbalanced *), in which language.
Write copy for the page it sits on: render the page in every language after a change.