Skip to content

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

Open
@nishantkCB

Description

@nishantkCB

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions