import type { ILaughingLocaleConfig } from '@laughing-cli/locale' const config: ILaughingLocaleConfig = { basePath: './i18n', baseLocale: 'zh-CN', scannerOptions: { input: [ '**/*.{ts,vue}', // Use ! to filter out files or directories '!**/node_modules/**', ], output: './', // 输出目录 options: { debug: true, func: false, trans: false, lngs: ['zh-CN', 'en-US'], defaultLng: 'zh-CN', fallbackLng: 'zh-CN', resource: { loadPath: 'i18n/{{lng}}.json', savePath: 'i18n/{{lng}}.json', jsonIndent: 2, lineEnding: '\n', }, removeUnusedKeys: true, nsSeparator: false, keySeparator: false, interpolation: { prefix: '{{', suffix: '}}', }, }, }, } export default config