Using the Extension
By using the Quetzal VSCode/Cursor extension, you should be able to wrap your strings with thet
function automatically. However, this page will document manual use.
Import the ‘t’ function
To translate strings in your app, they must be wrapped in Quetzal’st
function.
The t
function is how Quetzal knows what to send for translation, and where to put the translated text.
The Quetzal t function is built on top of the next-intl t function, and
behaves similarly. Check out the next-intl
docs for t function
usage instructions.