Is it possible to use _() as translation function name?
jumpapex opened this issue · 1 comments
jumpapex commented
jshmrtn,
Great work!
I use _() as translation function with other languages previously, and prefer it.
So is it possible to use _() with vue3-gettext also? if it is , how to do it?
e.g.
{{ _('Console Login') }}
Thanks!
lzurbriggen commented
Hi @jumpapex, I'm sorry to disappoint, but not really, for a couple reasons:
- there is not just 1 translation function but 4 different ones. (these rougly follow the naming from the gnu gettext manual).
- while you could alias
$gettext
to_
in your project, the extraction script is currently not configurable so will not be able to extract your messages from_("my message")