nomlish(ノムリッシュ翻訳)
Description(概要)
任意の文字列をノムリッシュ・テキストに変換するライブラリです。
axiosとlibxmljsを用いて実装されています。axiosベースのためすべてPromiseで処理結果が返ってきます。
nomlish.translate(text, level)
- text 任意のString
- level 1~5のNumber
- 1:日→野 Lv1
- 2:日→野 Lv2
- 3:日→野 Lv3
- 4:日→野 Lv4
- 5:日→ラグーン語
- returns Promise
Installation(セットアップ方法)
Using npm:
$ npm install nomlish
Using yarn:
$ yarn add nomlish
Usage(使用方法)
example(例)
- 翻訳(翻訳レベル指定なし) Promise ver.
const nomlish = ; const beforeText = "任意の文字列をノムリッシュ・テキストに変換するライブラリです。"; nomlish ;
- 翻訳(翻訳レベル指定あり) Promise ver.
const nomlish = ; const beforeText = "任意の文字列をノムリッシュ・テキストに変換するライブラリです。";const level = 4; nomlish ;
Licence(ライセンス)
This software is released under the MIT License, see LICENSE.
Authors(作者)
-
Source Code:SugarShootingStar(@_Ancient_Scapes)
-
Nomlish Translate Site: http://racing-lagoon.info/