i18n-polyfill
i18n-polyfill copied to clipboard
not able to set customId
I am facing an error while defining customId as "Missing translation for message "customId" ("[ERROR ->]Some value"): 0:0" below is my code ... ... constructor( private elm: ElementRef, private i18n: I18n ) { this.customId = this.i18n({id: "customId", value: "Some value", description: "Custom desc", meaning: "Custom meaning"}); }
Please help
The error message you pasted says 'Missing translation for message "customId"' which makes it sound like you just need to add the translation in your xlf file by adding 'target' tags. Please give more info or a concrete example (files) if that's not the case.