File tree 2 files changed +10
-5
lines changed
2 files changed +10
-5
lines changed Original file line number Diff line number Diff line change @@ -290,17 +290,22 @@ export class Application extends AbstractComponent<
290
290
if ( ! this . internationalization . hasTranslations ( this . lang ) ) {
291
291
// Not internationalized as by definition we don't know what to include here.
292
292
this . logger . warn (
293
- `Options specified "${ this . lang } " as the language to use, but TypeDoc does not support it.` as TranslatedString ,
293
+ `Options specified "${ this . lang } " as the language to use, but TypeDoc cannot provide translations for it.` as TranslatedString ,
294
294
) ;
295
295
this . logger . info (
296
- ( "The supported languages are:\n\t" +
296
+ ( "The languages that translations are available for are:\n\t" +
297
297
this . internationalization
298
298
. getSupportedLanguages ( )
299
299
. join ( "\n\t" ) ) as TranslatedString ,
300
300
) ;
301
301
this . logger . info (
302
302
"You can define/override local locales with the `locales` option, or contribute them to TypeDoc!" as TranslatedString ,
303
303
) ;
304
+ } else if ( this . lang === "jp" ) {
305
+ this . logger . warn (
306
+ // Only Japanese see this. Meaning: "jp" is going to be removed in the future. Please designate "ja" instead.
307
+ "「jp」は将来削除されます。代わりに「ja」を指定してください。" as TranslatedString ,
308
+ ) ;
304
309
}
305
310
306
311
if (
Original file line number Diff line number Diff line change @@ -302,9 +302,9 @@ export class Internationalization {
302
302
*/
303
303
getSupportedLanguages ( ) : string [ ] {
304
304
return unique ( [
305
- ...readdirSync (
306
- join ( fileURLToPath ( import . meta . url ) , "../locales" ) ,
307
- ) . map ( ( x ) => x . substring ( 0 , x . indexOf ( "." ) ) ) ,
305
+ ...readdirSync ( join ( fileURLToPath ( import . meta . url ) , "../locales" ) )
306
+ . map ( ( x ) => x . substring ( 0 , x . indexOf ( "." ) ) )
307
+ . filter ( ( x ) => x !== "jp" ) ,
308
308
...this . allTranslations . keys ( ) ,
309
309
] ) . sort ( ) ;
310
310
}
You can’t perform that action at this time.
0 commit comments