UNPKG

i18n-pro

Version:

An out-of-the-box, lightweight JavaScript i18n auto-translation solution

21 lines (19 loc) 402 B
const { join } = require('path') module.exports = { funcName: 't', // entry: join(__dirname, './src/'), // fileRegExp: /\.[jt]s$/, input: 'src/**/*.{js,ts}', output: { path: join(__dirname, './i18n/'), }, translator: 'googlex', googlexConfig: { from: 'en', to: ['zh-CN', 'ja'], codeLocaleMap: { 'zh-CN': 'zh', }, // proxy: 'http://127.0.0.1:1087', }, }