Skip to content

Commit f3ddd55

Browse files
committed
Improve messages for unsupported languages
1 parent 4856250 commit f3ddd55

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/lib/application.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -286,18 +286,18 @@ export class Application extends AbstractComponent<
286286
if (!this.internationalization.hasTranslations(this.lang)) {
287287
// Not internationalized as by definition we don't know what to include here.
288288
this.logger.warn(
289-
`Options specified "${this.lang}" as the language to use, but TypeDoc does not support it.` as TranslatedString,
289+
`Options specified "${this.lang}" as the language to use, but TypeDoc cannot provide translations for it.` as TranslatedString,
290290
);
291291
this.logger.info(
292-
("The supported languages are:\n\t" +
292+
("The languages that translations are available for are:\n\t" +
293293
this.internationalization
294294
.getSupportedLanguages()
295295
.join("\n\t")) as TranslatedString,
296296
);
297297
this.logger.info(
298298
"You can define/override local locales with the `locales` option, or contribute them to TypeDoc!" as TranslatedString,
299299
);
300-
} else if (this.lang === "jp") {
300+
} else if (this.lang === "jp") {
301301
this.logger.warn(
302302
// Only Japanese see this. Meaning: "jp" is going to be removed in the future. Please designate "ja" instead.
303303
"「jp」は将来削除されます。代わりに「ja」を指定してください。" as TranslatedString,

0 commit comments

Comments
 (0)