diff --git a/packages/utils/saferKorean.ts b/packages/utils/saferKorean.ts index e09d93b..36372e0 100644 --- a/packages/utils/saferKorean.ts +++ b/packages/utils/saferKorean.ts @@ -37,7 +37,7 @@ export const VersionPostfix = { "b": "베타", }; -export const LangPrefixs = { +export const LangPrefixes = { "typescript": "타입스크립트", "javascript": "자바스크립트", "java": "자바", @@ -48,10 +48,24 @@ export const LangPrefixs = { "yaml": "야믈", "yml": "야믈", "toml": "토믈", + "xml": "엑스엠엘", "julia": "줄리아", "matlab": "매트랩", "erlang": "얼랭", "elxir": "엘릭서", + "zig": "지그", + "txt": "텍스트", + "vim": "빔", + "perl": "펄", + "php": "피에이치피", + "lisp": "리스프", + "postscript": "포스트스크립트", + "ghostscript": "고스트스크립트", + "fortran": "포트란", + "algol": "알골", + "scala": "스칼라", + "haskell": "하스켈", + "basic": "베이직", "cpp": "씨플플", "c++": "씨플플", @@ -59,7 +73,11 @@ export const LangPrefixs = { "cs": "씨샵", "c#": "씨샵", "c": "씨", + "h": "헤더", + "d": "디", + "awk": "에이더블류케이", + "pl": "펄", "pwsh": "파워쉘", "powershell": "파워쉘", "cmd": "씨엠디", @@ -68,21 +86,31 @@ export const LangPrefixs = { "bat": "배치파일", "bash": "베시스크립트", "tex": "텍", + "dart": "다트", + "go": "고랭", + "python": "파이썬", + "swift": "스위프트", + "css": "씨에스에스", + "html": "에이치티엠엘", "latex": "레이텍", "md": "마크다운", "markdown": "마크다운", + "py": "파이썬", + "hs": "하스켈", "rs": "러스트", "kt": "코틀린", - "js": "자바스크립트", - "ts": "타입스크립트", + "js": "자스", + "ts": "타스", "tsx": "리액트 타입스크립트", "jsx": "리액트 자바스크립트", + "an": "에이엔", + "parlance": "팔렌스", }; export const LangPrefixMaxLength = (()=>{ let max = 0; - for (const key in LangPrefixs) { + for (const key in LangPrefixes) { max = Math.max(key.length, max); } return max; @@ -140,7 +168,7 @@ export const MeterPrefix = { export const GIFMap = { "tenor.com/view/majo-no-tabitabi-the-journey-of-elaina-elaina-windy-hair-gif-19187698": "화난 일레이나", - "tenor.com/view/majo-no-tabitabi-the-journey-of-elaina-elaina-sparkle-amazed-gif-18827847": "일레이나 반짝반짝", + "tenor.com/view/majo-no-tabitabi-the-journey-of-elaina-elaina-sparkle-amazed-gif-18827847": "일레이나 반짝반짝!", "images-ext-1.discordapp.net/external/C3xPFuUxs16jY25AR3NvsIDezaOtib9wozhLBWejZk4/https/media.tenor.com/bUd8mk4ufwsAAAPo/anime-disappointment.mp4": "일레이나 절래절래", "images-ext-1.discordapp.net/external/SXv4qgpy2r1Gx-dNxhcfJle6AXDaH_SToRjEBYYaup0/https/media.tenor.com/nDDxJc4FDwEAAAPo/cute.mp4": "일레이나 끄덕", "tenor.com/view/majo-no-tabitabi-the-journey-of-elaina-elaina-what-gif-19011602": "당황한 일레이나", @@ -168,7 +196,7 @@ export function saferKorean(input: string): string { .replace(/\`\`\`([\s\S]*?)\`\`\`/g, (_, content: string)=>{ const code = content.substring(0, LangPrefixMaxLength).toLowerCase(); let lang = ""; - for (const [key, value] of Object.entries(LangPrefixs)) { + for (const [key, value] of Object.entries(LangPrefixes)) { if (code.startsWith(key + "\n")) { lang = value + " "; break;