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

Unable to translate group.text using group template #449

Open
sentientmachin3 opened this issue Mar 20, 2024 · 0 comments
Open

Unable to translate group.text using group template #449

sentientmachin3 opened this issue Mar 20, 2024 · 0 comments

Comments

@sentientmachin3
Copy link

My use case involves the usage of group templates. The issues is, when using a group template like this

...
  groupValueField="type"
  groupTextField="translatedType"
  [shouldFocusSearchbar]="true"
  closeButtonText=""
>
  <ng-template ionicSelectableGroupTemplate let-group="group">{{group.text | translate}}</ng-template>
</ionic-selectable>

I am not able to get the group.text value to be translated, using ngx-translate. I double checked and the translatedType field returns the translation key to be used; keys are in the translation files.

Versions I'm using:

{
"@ionic-angular": "^7.5.4",
"@angular/common": "^17.0.2",
"@angular/core": "^17.0.2",
"@angular/forms": "^17.0.2",
"@ng-select/ng-select": "^12.0.6",
"@ngx-translate/core": "^15.0.0"
}
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