TypeStrong / typedoc

Documentation generator for TypeScript projects.
https://typedoc.org
Apache License 2.0
7.73k stars 699 forks source link

Unsupported language warning on Mac M1 #2764

Open SL-23 opened 3 days ago

SL-23 commented 3 days ago

Search terms

[warning] Options specified "en" as the language to use, but TypeDoc does not support it.

Expected Behavior

No warning with below code

const app = await Typedoc.Application.bootstrapWithPlugins({
    entryPoints: [],
  });
  const converted = (await app).convert();
  if (await converted) {
    console.log("okk");
  }

Actual Behavior

Screenshot 2024-11-04 at 9 36 40 PM

Steps to reproduce the bug

See my testing app

To reproduce:

  1. Go to my testing app
  2. Clone my app
  3. npm install
  4. nvm use v18.18.2
  5. npm run gen-doc

Environment

Gerrit0 commented 3 days ago

This is happening because of the check for ts-node in the internationalization class. TypeDoc tries to load a TS version of the locales as that's what it should use in development.

This should already be fixed in 0.27 as TypeDoc has moved away from ts-node

SL-23 commented 3 days ago

Thanks @Gerrit0, will close my PR then.