typedoc icon indicating copy to clipboard operation
typedoc copied to clipboard

`--lang fr` is not accepted while warning message says it is

Open ContrapunctusII opened this issue 1 year ago • 1 comments

Search terms

If one tries to run the following command to generate documentation in French:

typedoc --out docs --entryPoints lib/index.ts --lang fr

He will get this warning message:

[info] The languages that translations are available for are:
        en
        fr
        ja
        ko
        zh

And the documentation won't be translated.

All the other languages work as expected.

Expected Behavior

According to the message, fr should be a correct value for the lang option.

Environment

  • Typedoc version: 0.27.7
  • TypeScript version: 5.6.2
  • Node.js version: v22.13.1
  • OS: Windows 11

ContrapunctusII avatar Feb 13 '25 20:02 ContrapunctusII

fr shouldn't be included in that list as it has no translations, TypeDoc was incorrectly including the selected language in the list

Gerrit0 avatar Feb 14 '25 02:02 Gerrit0