Skip to content

Optional javaabu/translatable support #10

Closed

Description

@n4ff4h

Optional support using javaabu/translatable's contract for other packages: in suggest, feature-detected, documented on its own page, and tested with and without it.

Activity

  1. added
    next-genNext-gen Javaabu packages
    featurePackage feature from the spec
    on Nov 4, 2026
  2. n4ff4h commented on Nov 5, 2026

    @n4ff4h
    CollaboratorAuthor

    Done, following n4ff4h/translatable#10:

    • Optional: translatable is in suggest and require-dev. It's feature-detected only in Support/Translations.
    • Storage: JSON storage (translations/lang columns on every table).
    • Models: translatable variants in Models\\Translatable are picked lazily when it's enabled and the app hasn't configured a model.
    • Seeding: Dhivehi names are seeded as the Dhivehi translation.
    • Admin forms: they get an input per language through stencil's ->translatable(), with dhivehi_name kept in step.
    • Tests: tests/Translatable covers it, and a CI leg runs without it.

    Decision: the native Dhivehi column is dhivehi_name, not name_dv, which would collide with translatable's {field}_{locale} attributes.

    Docs: docs/advanced-usage/translatable.md.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    featurePackage feature from the specnext-genNext-gen Javaabu packages

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions