tianji/src/client/i18next-toolkit.config.cjs

57 lines
1.1 KiB
JavaScript
Raw Normal View History

2024-02-11 16:39:22 +00:00
/** @type {import('@i18next-toolkit/cli').I18nextToolkitConfig} */
const config = {
2024-04-20 18:11:51 +00:00
locales: ['en', 'zh', 'jp', 'fr', 'de', 'pl', 'pt', 'ru'],
2024-02-28 14:28:12 +00:00
verbose: true,
namespaces: ['translation'],
2024-04-14 09:18:22 +00:00
translator: {
2024-08-18 14:32:27 +00:00
// type: 'prompt',
type: 'openai',
openai: {
2024-08-18 14:32:27 +00:00
modelName: 'gpt-4o-mini',
},
2024-04-14 09:18:22 +00:00
},
2024-02-11 16:10:38 +00:00
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',
2024-04-20 14:24:48 +00:00
'CPU',
'RAM',
'HDD',
2024-02-11 16:10:38 +00:00
],
},
2024-02-11 16:39:22 +00:00
};
module.exports = config;