Closed nanoander closed 2 years ago
@nanoander I'm a bit confused, but here are some pointers:
{{ $gettext('text') }}
in templates without any imports (use useGettext
only if you need gettext in your script block). I'm not sure where you got $.gettext('text')
from, that won't/shouldn't work.$gettext
etc. (see extraction script).At some point I may make the extract script customizable so you can define your own function names/tokens, but I can't promise anything atm.
Issue: after running
vue-gettext-extract
, the expectedpot
andpo
files are created, but they have not the translation strings when using$.gettext
in templates. It works when using theuseGettext
hook tho.This works:
but this doesn't:
Details:
"vue": "3.2.33", "vue3-gettext": "2.2.3"
App setup