Skip to content

HAMUR_E5826: hamur i18n extract --prune finds dynamic keys

hamur i18n extract --prune finds dynamic keys. Error HAMUR_E5826 belongs to @hamur/i18n (5801 – 5900).

Message

text
HAMUR_E5826 --prune needs every key to be static; fix the dynamic keys above

Cause

hamur i18n extract --prune found a key that is not a string literal, so it cannot tell which keys are used.

Fix

Make the keys static, as the lines above the message show.