Currently, I am utilizing the @ngx Translate Service. Within a template, you can utilize it in the following manner, where 'stringName' represents a key within a JSON file:
{{ 'stringName.subStringname' | translate }}
The issue I am facing pertains to constructing the key name within the template. This involves using both a string and a variable (with a value of 'subStringname') from the component.ts. I am looking to create something along these lines:
{{ `stringName.${variable}` | translate }}
What is the correct syntax for achieving this?