Module: Magik::I18n
- Defined in:
- lib/magik/i18n.rb
Overview
Localisation and timezone-safe time handling. Timestamps cannot be rendered without explicit timezone conversion — that is a boot guardrail, not a lint.
Implements: Phase 8 — i18n, PWA, Notifications of docs/idea/00-build-spec.md.
Planned DSL surface, copied from the spec:
* `locales :en, :es, ...`
* `translatable: true fields`
* `timezone-safe :timestamp type`
Status: Not implemented — spec only. Every entry point below raises NotImplementedError. Nothing here reads config, touches a database or emits a byte of HTML.
Constant Summary collapse
- SPEC_PHASE =
The build-spec phase this subsystem implements.
"Phase 8 — i18n, PWA, Notifications"- DSL_SURFACE =
The DSL this subsystem will expose, verbatim from the spec.
[ "locales :en, :es, ...", "translatable: true fields", "timezone-safe :timestamp type" ].freeze
- STATUS =
Implementation status of this subsystem.
"Not implemented — spec only"
Class Method Summary collapse
-
.define(*_args, **_options) ⇒ void
Entry point for the I18n DSL.
Class Method Details
.define(*_args, **_options) ⇒ void
This method returns an undefined value.
Entry point for the I18n DSL.
43 44 45 |
# File 'lib/magik/i18n.rb', line 43 def self.define(*_args, **) raise NotImplementedError, "Magik::I18n is spec-only; see docs/idea/00-build-spec.md" end |