Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Non-database classes are not translatable #106

Open
dkarlovi opened this issue Mar 8, 2022 · 0 comments
Open

Non-database classes are not translatable #106

dkarlovi opened this issue Mar 8, 2022 · 0 comments
Labels
bug Something isn't working
Milestone

Comments

@dkarlovi
Copy link
Collaborator

dkarlovi commented Mar 8, 2022

If you're using a value object, it currently cannot be translatable.

Example

class ProductUnit
{
    #[Localized] // this doesn't work
    public string $label;
}

class Product
{
    public ProductUnit $unit;
}
@dkarlovi dkarlovi added the bug Something isn't working label Mar 8, 2022
@dkarlovi dkarlovi added this to the 0.6.0 milestone Mar 23, 2022
@dkarlovi dkarlovi modified the milestones: 0.13.0, 1.1 Feb 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Development

No branches or pull requests

1 participant