Files
triliumnext-korean-patch/updates/2026-09-05/phase9/swagger-ko.js
T

1 line
3.3 KiB
JavaScript

(()=>{const dict={"Authorize":"인증 설정","Authorized":"인증됨","Authorization":"인증","Logout":"인증 해제","Close":"닫기","Cancel":"취소","Execute":"실행","Clear":"지우기","Try it out":"직접 실행","Parameters":"매개변수","No parameters":"매개변수 없음","Request body":"요청 본문","Responses":"응답","Server response":"서버 응답","Response body":"응답 본문","Response headers":"응답 헤더","Request URL":"요청 주소","Response content type":"응답 콘텐츠 유형","Example Value":"예시 값","Schema":"스키마","Schemas":"스키마 목록","Models":"모델 목록","Model":"모델","Servers":"서버","Available authorizations":"사용 가능한 인증 방식","Name":"이름","Description":"설명","Code":"상태 코드","Details":"상세 정보","Links":"링크","No links":"링크 없음","Value":"값","required":"필수","Required":"필수","Optional":"선택 사항","Example":"예시","Examples":"예시 목록","Download":"내려받기","Download file":"파일 내려받기","Explore":"열기","Filter by tag":"태그로 필터링","Select a definition":"명세 선택","Select a spec":"명세 선택","Username:":"사용자 이름:","Password:":"비밀번호:","Value:":"값:","Name:":"이름:","In:":"전달 위치:","Username":"사용자 이름","Password":"비밀번호","Default":"기본값","default":"기본값","No content":"내용 없음","Loading...":"불러오는 중…","Loading":"불러오는 중","Errors":"오류","Hide":"숨기기","Show":"표시","Expand operation":"항목 펼치기","Collapse operation":"항목 접기","Copy to clipboard":"클립보드에 복사","Copy":"복사","Copied":"복사됨","Send empty value":"빈 값 보내기","Edit Value":"값 편집","Reset":"초기화","Available values":"사용 가능한 값","No results found":"결과 없음","Failed to fetch":"요청 실패","Undocumented":"명세에 없는 응답","Examples:":"예시:","Default value":"기본값","Media type":"콘텐츠 유형","Media Type":"콘텐츠 유형","Controls":"설정할 대상:","header.":"헤더","* required":"* 필수","authorization button unlocked":"인증 설정 안 됨","authorization button locked":"인증 설정됨","List":"목록","Download API definition":"API 명세 내려받기"};function tr(s){let k=s.trim();if(k.endsWith(' - Website'))return s.replace(' - Website',' 웹사이트');if(k.startsWith('Send email to '))return s.replace('Send email to ','이메일 보내기: ');return Object.hasOwn(dict,k)?s.replace(k,dict[k]):s;}function update(){const root=document.querySelector('#swagger-ui');if(!root)return;const w=document.createTreeWalker(root,NodeFilter.SHOW_TEXT);for(let n;n=w.nextNode();){if(n.parentElement.closest('pre,code,textarea,script,style,.parameter__name,.model-title,.opblock-summary-path')&&!['required','* required'].includes(n.nodeValue.trim()))continue;const s=tr(n.nodeValue);if(s!==n.nodeValue)n.nodeValue=s;}for(const el of root.querySelectorAll('[title],[aria-label],[placeholder]'))for(const a of ['title','aria-label','placeholder'])if(el.hasAttribute(a)){const s=el.getAttribute(a),v=tr(s);if(v!==s)el.setAttribute(a,v);}}let queued=false;new MutationObserver(()=>{if(queued)return;queued=true;requestAnimationFrame(()=>{queued=false;update();});}).observe(document.body,{childList:true,subtree:true,characterData:true});update();document.documentElement.lang='ko';})();