tolgee / tolgee-cli

The Tolgee CLI
MIT License
16 stars 11 forks source link

`tolgee sync` fails with warnings: `Dynamic default value` #54

Closed baptisteArno closed 12 months ago

baptisteArno commented 1 year ago

The tolgee sync command fails with the following warning:

line 123: Dynamic default value

It corresponds to that translation code:

<T
  keyName="account.apiTokens.deleteConfirmationMessage"
  params={{
    strong: <strong>{apiTokens?.find(byId(deletingId))?.name}</strong>,
  }}
/>;

Is there anything I do wrong here?

cyyynthia commented 1 year ago

It seems you're not doing anything wrong here; the extractor parser is probably getting confused by this expression and fails to properly understand the expression.

You can silence this warning using the @tolgee-key magic comment if you wish, though it'll emit a warning again once the issue is fixed reminding you to remove it as it'll no longer be necessary.

github-actions[bot] commented 12 months ago

:tada: This issue has been resolved in version 1.3.1 :tada:

The release is available on:

Your semantic-release bot :package::rocket: