Open digiwand opened 12 months ago
I believe I found the issue. In prod, join
is a function. In storybook, it is undefined
so we call parts.join('')
in storybook which coerces the substitution object into [object Object]
and joins this together with the other parts
storybook:
screenshot of substitution object in both storybook and prod:
Describe the bug
i18n placeholder input is not supported in Storybook which results in translations outputting "[Object object]" when placeholder inputs are provided. Supporting this feature will help us have a more accurate representation of the rendered components.
Expected behavior
Current behavior: Storybook TokenAllowance page displays "Spending cap behavior for [object Object]"
Expected behavior: Storybook TokenAllowance page displays "Spending cap behavior for TST"
Screenshots
Steps to reproduce
yarn storybook
t
, translation function (placeholder input)Error messages or log output
No response
Version
11.2.0
Build type
None
Browser
Chrome
Operating system
MacOS
Hardware wallet
No response
Additional context
No response
Severity
No response