Skip to content

Having a hard time understand how to use the collectUnusedTranslations #46

@kimvuVarner

Description

@kimvuVarner

running this code gives me: Error: EISDIR: illegal operation on a directory, read

const handleTranslations = async () => {
  const unusedTranslations = await collectUnusedTranslations(
    ['public/locales'],
    ['scripts'],
    {},
  );
  console.log(unusedTranslations);
};

my locales is located at public/locales while i want to get all unused keys from the scripts folder. Why does not this work?
image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions