Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug: unable to extract intlList #366

Open
mrtnzlml opened this issue Jun 19, 2022 · 0 comments
Open

Bug: unable to extract intlList #366

mrtnzlml opened this issue Jun 19, 2022 · 0 comments

Comments

@mrtnzlml
Copy link
Contributor

馃悰 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant