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

Support dynamic value property in the i18n service . Exporting translations breaks with error #57

Open
nishantkCB opened this issue Jul 26, 2019 · 1 comment

Comments

@nishantkCB
Copy link

Support for dynamic value in the i18n service.

this.invariantText ="Invarient text value "
I18nDef: {
value: this.invariantText;
id?: TRNALATION_DEFINITION_KEY;
meaning?: Translation;
description?: Translation description;
}
the invarient text is comming from a 3rd party package and we have all the translations in place , we want to exclude this from export, but where as it throws error and stops exporting other translations.

when exporting using export tool we get below error .

Running the @ngx-translate/i18n-polyfill extract...
Error: An I18nDef requires a value property on 'ObjectLiteralExpression' for [object Object]
at ServiceParser._getCallArgStrings (D:\Dev\cbes-candidate-portal\node_modules@ngx-translate\i18n-polyfill\extractor\src\abstract-ast-parser.js:29:27)

@dsnoeck
Copy link

dsnoeck commented Aug 12, 2019

Hi,
Do you still have your issue ? Can you provide more informations or even better a reproductible application ?

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

2 participants