Skip to content

Unable to translate group.text using group template #449

@sentientmachin3

Description

@sentientmachin3

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"
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions