Why _ not t in the i18n class of the Lingui Core API interface?
#2470
-
|
I was confused right from the start of using Lingui, that the documentation here https://lingui.dev/ref/core recommends using the Confused because the general convention is to use i18n._("Hello"); // Return "Hello" in Englishinstead of the more readable one: i18n.t("Hello"); // Return "Hello" in EnglishLingui still provides an alias |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
|
It's by historical reasons, the |
Beta Was this translation helpful? Give feedback.
It's by historical reasons, the
_was from the begining and all docs was written at that point of time. Latertalias was added, docs were no touched. So you can use whichever is more convinient for you.