tianji/src/client/i18next-toolkit.config.cjs
2024-04-30 19:44:51 +08:00

54 lines
1.0 KiB
JavaScript

/** @type {import('@i18next-toolkit/cli').I18nextToolkitConfig} */
const config = {
locales: ['en', 'zh', 'jp', 'fr', 'de', 'pl', 'pt', 'ru'],
verbose: true,
namespaces: ['translation'],
translator: {
type: 'openai',
model: 'gpt-4',
},
scanner: {
autoImport: false,
ignoreText: [
'Tianji',
'(25, 587)',
'TLS (465)',
'https://github.com/caronc/apprise/wiki#notification-services',
'Slug',
'--',
'a-z',
'0-9',
'80',
'example.com or 1.2.3.4',
'TCP Port',
'OpenAI',
'sess-************',
'Ping',
'For example:
{ "key": "value" }',
'Body',
'Headers',
'Content-Type',
'Method',
'https://example.com',
'HTTP',
'text/xml',
'application/x-www-form-urlencoded',
'application/json',
'OPTIONS',
'HEAD',
'DELETE',
'PATCH',
'PUT',
'POST',
'GET',
'HH:mm',
'YYYY-MM-DD HH:mm',
'CPU',
'RAM',
'HDD',
],
},
};
module.exports = config;