No description provided.
Internationalization with celemas/verba #58
Merged
ernstla
merged 17 commits from 2026年07月13日 18:58:08 +02:00
feature/verba-i18n into main
ernstla
commented 2026年07月13日 15:06:58 +02:00
ernstla
added 14 commits 2026年07月13日 15:06:58 +02:00
Harvest the translatable strings Cosray reads off schemas at render time so i18n:sync sees them: node/collection labels and badges, field labels, descriptions and option labels, and the navigation section, link and collection names. It implements verba's Scanner by reflecting the schema attributes and walking the booted navigation tree, mirroring the runtime translation points so the extracted ids match what the panel looks up. Also route navigation names through __() (they were emitted raw) and add Bootstrap::nodeClasses() to enumerate registered node types.
The panel negotiates its UI language independently of the content
locales: user preference (new users.panel_locale column, migration
000000-000023), then config panel.locale, then the browser's
Accept-Language, then English. A sidebar switcher stores the choice
via POST {path.panel}/locale. Selectable languages are the locales
whose cosray and panel domains both ship a catalog file. Date columns
and previously hardcoded nav strings now follow the panel language.
ernstla
added 2 commits 2026年07月13日 15:08:44 +02:00
Mirror Bootstrap::database(): the install namespace holds the schema snapshot (init + seed), the default namespace the system update migrations. Fresh databases initialize via --namespace install, then apply updates as a second run; CI, README, and the recreate-db hint now document the two-phase flow.
ernstla
added 1 commit 2026年07月13日 18:33:40 +02:00
Switch from local workspace links to the released packages so CI can resolve verba. The panel linked @celemas/verba via link:../../verba/js, a sibling path absent from the cosray checkout, breaking svelte-check. - composer: celemas/verba dev-main -> ^0.1.0 (Packagist) - panel: @celemas/verba link:../../verba/js -> ^0.1.0 (npm)
ernstla
merged commit 6fcadfd2c9 into main 2026年07月13日 18:58:08 +02:00
ernstla
deleted branch feature/verba-i18n 2026年07月13日 18:58:09 +02:00
Sign in to join this conversation.
No reviewers
Labels
Clear labels
bug
Something isn't working
dependencies
Pull requests that update a dependency file
documentation
Improvements or additions to documentation
duplicate
This issue or pull request already exists
enhancement
New feature or request
good first issue
Good for newcomers
help wanted
Extra attention is needed
invalid
This doesn't seem right
javascript
Pull requests that update javascript code
question
Further information is requested
wontfix
This will not be worked on
No labels
bug
dependencies
documentation
duplicate
enhancement
good first issue
help wanted
invalid
javascript
question
wontfix
Milestone
Clear milestone
No items
No milestone
Projects
Clear projects
No items
No project
Assignees
Clear assignees
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".
No due date set.
Dependencies
No dependencies set.
Reference
cosray/cms!58
Loading...
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "feature/verba-i18n"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?