udacity / fluent-react-utils

Archiving for now. May reference for future fluent use, but this package is not currently in use.
Other
6 stars 3 forks source link

extracting strings with backticks for multiline appears to cause an error #12

Open hkasemir opened 5 years ago

hkasemir commented 5 years ago
<Loc.P l10nId="ActionBar_learnersSelected" l10nVars={{learners}}>
        {`{$learners ->
    [one] One learner selected
   *[other] { $learners } learners selected
       }`}
      </Loc.P>

produces the following output:

 ActionBar_learnersSelected =
    STRING_IMPORT_ERROR:
    - no translated props or message provided to Loc.P
    - pass in a non-empty translatable message as a child or applicable attributes
    - check the component with the localization ID "ActionBar_learnersSelected"