Skip to content

locales

axios edited this page Jan 26, 2021 · 3 revisions

Get details from the code.

Usage

const { __, use } = require('@axiosleo/cli-tool').locales;

console.log(__('some word')); // translate word

use('en-US'); // specifies the language set from sets([en-US,zh-CN])

console.log(__('use en-US language set to translate'));

Clone this wiki locally