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

v16 returns undefined when translating booleans. #1503

Open
pjcav opened this issue Nov 18, 2024 · 0 comments
Open

v16 returns undefined when translating booleans. #1503

pjcav opened this issue Nov 18, 2024 · 0 comments

Comments

@pjcav
Copy link

pjcav commented Nov 18, 2024

Current behavior

Have translation file like

{
  name: {
    label: 'Name Form Control',
    required: true
  }
}

after translation file has been loaded and we do
this.translationService.instant('name')
the result is

{
  name: {
    label: 'Name Form Control',
    required: undefined
  }
}

Expected behavior

Returns

{
  name: {
    label: 'Name Form Control',
    required: true
  }
}

How do you think that we should fix this?

Minimal reproduction of the problem with instructions

Environment


ngx-translate version: 16.0.3
Angular version: 18.2.9


Browser:
- [ ] Chrome (desktop) version XX
- [ ] Chrome (Android) version XX
- [ ] Chrome (iOS) version XX
- [ ] Firefox version XX
- [ ] Safari (desktop) version XX
- [ ] Safari (iOS) version XX
- [ ] IE version XX
- [ ] Edge version XX
 
For Tooling issues:
- Node version: XX  
- Platform:  

Others:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant