Documentation
¶
Overview ¶
Package deepleng は DeepL の翻訳 API を使った翻訳エンジンです.
このエンジンを利用するには、DeepL PRO の無料/有料アカウントから発行したアクセス・トークン(認証キー/API キー)が必要です。
- アカウント登録後のアクセス・トークン確認先: https://www.deepl.com/pro-account/plan (認証キー)
Index ¶
- Constants
- func GetInfoAPI(p *engine.Properties) (engine.AccountInfo, error)
- func GetURLBaseAPI(p *engine.Properties) string
- func IsAPIKeyFree(apikey string) bool
- func New(cacheID ...string) *engine.Properties
- func Translate(p *engine.Properties, inText string, langFrom string, langTo string) (result string, err error)
Constants ¶
View Source
const NameVarEnvAPIKey = "DEEPL_API_KEY"
Variables ¶
This section is empty.
Functions ¶
func GetInfoAPI ¶
func GetInfoAPI(p *engine.Properties) (engine.AccountInfo, error)
GetInfoAPI はアクセス・トークンのアカウント情報のうち、engine.AccountInfo に必要なものだけセットして返します.
func GetURLBaseAPI ¶
func GetURLBaseAPI(p *engine.Properties) string
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.