Hello Kim,
Thanks for ngx-translate-extract! Great Work!
While examining carefully we found out that these kinds of expressions are not detected and extracted:
It would be nice if conditional (ternary) operators (using only strings in both cases) are supported. So we could write
<p translate>{{ switch ? "Move up" : "Move down" }}</p> (currently not detected)
instead of
<p>{{ switch ? ("Move up" | translate) : ("Move down" | translate) }}</p> (detected)
In this very special scenario ngx-translate-extract won't find the word "Cuckoo":
demo.component.ts
import { Chart } from './chart.service';
import { TranslateService } from '@ngx-translate/core';
Hello Kim, Thanks for ngx-translate-extract! Great Work!
While examining carefully we found out that these kinds of expressions are not detected and extracted:
It would be nice if conditional (ternary) operators (using only strings in both cases) are supported. So we could write
<p translate>{{ switch ? "Move up" : "Move down" }}</p>
(currently not detected) instead of<p>{{ switch ? ("Move up" | translate) : ("Move down" | translate) }}</p>
(detected)In this very special scenario ngx-translate-extract won't find the word "Cuckoo": demo.component.ts
@Component({ selector: 'app-demo', templateUrl: './demo.component.html', styleUrls: ['./demo.component.scss'] }) export class Demo {
constructor( protected translate: TranslateService ) { }
public chart: Chart = new Chart({ translate: this.translate });
public ngOnInit(): void { this.output = this.chart.getDescription(); } }
base.component.ts