You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The difference between :conf:`fallbackLocales` and :conf:`sourceLocale` is that
507
508
:conf:`fallbackLocales` is used in translation, while :conf:`sourceLocale` is
508
509
used for the message ID.
510
+
511
+
extractors
512
+
------------
513
+
514
+
Default: ``[babel]``
515
+
516
+
Extractors it's the way to customize which extractor you want for your codebase, a long time ago Babel wasn't ready yet to work with Typescript,
517
+
so we added two extractors as default ``[babel, typescript]``, but right now Babel already works good with Typescript so isn't a requirement anymore to compile two times the same code.
518
+
519
+
Anyway, if you want to use the typescript extractor in conjuntion with babel you can do:
Of course you can build your own extractor, take a look to babel and typescript extractors to see how you should do it, but basically exports two methods:
531
+
- match: regex to a filename extension, should return true|false
532
+
- extract: is the responsible of transforming the code and using @lingui/babel-plugin-extract-messages
0 commit comments