Skip to content

Commit 4856250

Browse files
committed
Deprecate "jp"
1 parent 41dea00 commit 4856250

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

src/lib/application.ts

+5
Original file line numberDiff line numberDiff line change
@@ -297,6 +297,11 @@ export class Application extends AbstractComponent<
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") {
301+
this.logger.warn(
302+
// Only Japanese see this. Meaning: "jp" is going to be removed in the future. Please designate "ja" instead.
303+
"「jp」は将来削除されます。代わりに「ja」を指定してください。" as TranslatedString,
304+
);
300305
}
301306

302307
if (

src/lib/internationalization/internationalization.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -302,9 +302,9 @@ export class Internationalization {
302302
*/
303303
getSupportedLanguages(): string[] {
304304
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"),
308308
...this.allTranslations.keys(),
309309
]).sort();
310310
}

0 commit comments

Comments
 (0)