3.1.2 • Published 9 months ago

nodepapago v3.1.2

Weekly downloads
25
License
MIT
Repository
github
Last release
9 months ago

nodepapago - 비공식 파파고 라이브러리.

TypeScript Passed License

  • Note: It can stop working anytime.
  • 전달: 이 프로그램은 언제라도 작동을 멈출 수 있습니다.
  • English

NPM

설치

npm install nodepapago

Github

https://github.com/PinMIlk/nodepapago

npm

https://www.npmjs.com/package/nodepapago

예시

import Translator from 'nodepapago';

new Translator({
    parameter: {
        target: 'ko',
        text: 'So far, so good!'
    }
}).translate()
    .then(res => console.log(res))
    .catch(e => console.log(e));
// Expected output: '지금까지, 너무 좋아요!'

new Translator({
    parameter: [
        {
            source: 'en',
            target: 'ko',
            text: 'Morning, sir.'
        },
        {
            source: 'en',
            target: 'ko',
            text: 'Morning, ma\'am.'
        }
    ],
    honorific: true
}).translate()
    .then(res => console.log(res))
    .catch(e => console.log(e));
// Expected output: [ '안녕하세요, 선생님.', '안녕하세요, 부인.' ]

new Translator({
    parameter: [
        {
            source: 'en',
            target: 'ko',
            text: 'Morning!'
        },
        {
            source: 'en',
            target: 'ko',
            text: 'Morning, baby!'
        }
    ],
    verbose: true
}).translate()
    .then(res => console.log(res))
    .catch(e => console.log(e));
// Expected output: sooooo long...

Translator.detect('So far, so bueno!')
    .then(res => console.log(res))
    .catch(e => console.log(e));
// Expected output: 'it'

설정

설명타입필수기본값
parameter매개변수 (리스트)TranslateParameter \| TranslateParameter[]Y-
honorfic높임말booleanNfalse
verbose결과를 json으로 내보낼 지 결정합니다.booleanNfalse
multi다중 번역booleanNfalse

매개변수

프로퍼티설명타입필수기본값
source원본 텍스트 언어 코드stringNdetect
target번역할 텍스트 언어 코드stringY-
text번역할 문장stringY-

언어 감지

매개변수설명타입필수
text언어를 감지할 문장stringY

언어 코드

코드언어
ko한국어
en영어
ja일본어
zh-cn중국어(간체)
zh-tw중국어(번체)
hi힌디어
es에스파냐어
fr프랑스어
de독일어
pt포르투갈어
vi베트남어
id인도네시아어
fa페르시아어
ar아랍어
mm미얀마어
th태국어
ru러시아어
it이탈리아어
detect자동 감지

변경점

v2.2.1

  • 해싱 알고리즘 변경

v2.2.4

  • 해싱 알고리즘 변경

v3.0.0

  • 전체 소스 변경

v3.0.1

  • 해싱 알고리즘 변경

v3.1.0

  • 해싱 알고리즘 변경
  • 모듈화

v3.1.1

  • UUID 생성 부분 변경(기존 Papago 방식 → UUID Module 사용)
  • 약간의 경량화
  • README.md File 기본 언어를 한국어로 변경

라이선스

nodepapago는 MIT 라이선스를 따릅니다.

3.1.2

9 months ago

3.1.1

3 years ago

3.1.0

4 years ago

3.0.1

4 years ago

3.0.0

4 years ago

2.2.4

4 years ago

2.2.3

4 years ago

2.2.2

4 years ago

2.2.1

4 years ago

2.1.2

5 years ago

2.1.1

5 years ago

2.1.0

5 years ago

2.0.8

5 years ago

2.0.7

5 years ago

2.0.6

5 years ago

2.0.5

5 years ago

2.0.4

5 years ago

2.0.3

5 years ago

2.0.2

5 years ago

2.0.1

5 years ago

2.0.0

5 years ago

1.0.8

5 years ago

1.0.7

5 years ago

1.0.6

5 years ago

1.0.5

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago