fbt
fbt copied to clipboard
Bug: unable to extract `intlList`
🐛 Bug Report
I have the following file: https://github.com/adeira/universe/blob/043ce6f981b6bcb242315e49ff8f2364c211df12/src/abacus-backoffice/src/analytics/QuarterNumberToString.js
From what I understood (correct me if I am wrong), not only should FBT extract the months but also what's created by intlList
. You can see in the documentation that I should expect something like this:
<fbt
desc={
'A list of items of various types. {previous items} and' +
' {following items} are themselves lists that contain one or' +
' more items.'
}>
<fbt:param name="previous items">{output}</fbt:param>
{', '}
<fbt:param name="following items">{items[i]}</fbt:param>
</fbt>
To Reproduce
You can reproduce this by cloning the repository mentioned before and running yarn workspace @adeira/abacus-backoffice fbt
. Here is what the command would run: https://github.com/adeira/universe/blob/043ce6f981b6bcb242315e49ff8f2364c211df12/src/abacus-backoffice/package.json#L13
Expected behavior
FBT should extract not only the month but also the list so it's possible to translate it.
Link to repo (highly encouraged) or paste
see above
envinfo
System:
OS: macOS 12.2.1
CPU: (8) x64 Intel(R) Core(TM) i5-1038NG7 CPU @ 2.00GHz
Memory: 545.89 MB / 16.00 GB
Shell: 5.8 - /bin/zsh
Binaries:
Node: 18.3.0 - /usr/local/bin/node
Yarn: 3.2.1 - /usr/local/bin/yarn
npm: 8.11.0 - /usr/local/bin/npm
Watchman: 2022.06.13.00 - /usr/local/bin/watchman