From 9b6a274e9308eb7739f0abd5d0bdb0e5f9adcbe4 Mon Sep 17 00:00:00 2001 From: dphuang2 Date: Sat, 7 Oct 2023 01:11:58 -0700 Subject: [PATCH] support "js" lang (#262) --- generator/konfig-next-app/src/components/DemoCode.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/generator/konfig-next-app/src/components/DemoCode.tsx b/generator/konfig-next-app/src/components/DemoCode.tsx index 8e0efb4f0..09abddd7c 100644 --- a/generator/konfig-next-app/src/components/DemoCode.tsx +++ b/generator/konfig-next-app/src/components/DemoCode.tsx @@ -31,8 +31,10 @@ const langDisplayName = { go: { name: 'Go' }, java: { name: 'Java' }, json: { name: 'JSON' }, + javascript: { name: 'JavaScript' }, + js: { name: 'JavaScript' }, } as Record< - Language | 'ruby' | 'csharp' | 'php' | 'shell' | 'java', + Language | 'ruby' | 'csharp' | 'php' | 'shell' | 'java' | 'js', { name: string } >