I tried to generate javadoc using the command line tool, i.e.:
javadoc Main.java
But the resulting documentation is in Chinese for me.
How can I change the language to, lets say English?
javadoc -locale en_US Main.java
See the official documentation of the command.
In particular the section about the -locale
option:
-locale name
Specifies the locale that the javadoc tool uses when it generates documentation. The argument is the name of the locale, as described in
java.util.Locale
documentation, such as en_US (English, United States) or en_US_WIN (Windows variant).Specifying a locale causes the javadoc tool to choose the resource files of that locale for messages such as strings in the navigation bar, headings for lists and tables, help file contents, comments in the stylesheet.css file, and so on. It also specifies the sorting order for lists sorted alphabetically, and the sentence separator to determine the end of the first sentence. The
-locale
option doesn't determine the locale of the documentation comment text specified in the source files of the documented classes.