8000 [RFC] Move Translatable to contracts · Issue #38319 · symfony/symfony · GitHub
[go: up one dir, main page]

Skip to content
[RFC] Move Translatable to contracts #38319
Closed
@ro0NL

Description

@ro0NL

Currently the new Translatable value object and its corresponding t() factory, live in the Translator component.

Given its general purpose usability for any translator implementation, i suggest to move both symbols to the Translation contract.

It seems more reasonable to leak contracts into our domain layer, rather than an infrastructural component.

Besides, this provides a defacto standard for translation extractors to act upon as well.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0