Skip to content

v0.1.9

Latest
Compare
Choose a tag to compare
@gamcoh gamcoh released this 15 Nov 09:19
· 1 commit to main since this release

Full Changelog: v0.1.8...v0.1.9

Fixed #2

When you have translations hooks or function in the file with some argument like so:

const Blog = async () => { // For instance a Next.js page
  const t = await getTranslations("/page2");

Or :

const Blog = () => {
  const { t } = useTranslation("/page");

The keys in the json file are going to look like this:

{
  "/page2.some_key_found": "TODO"

Careful

If you have multiple hooks in one file this will through an error.