mirror of
https://github.com/acepanel/panel.git
synced 2026-02-04 13:47:15 +08:00
63 lines
1.2 KiB
JavaScript
63 lines
1.2 KiB
JavaScript
export default {
|
|
input: {
|
|
include: ['**/*.js', '**/*.ts', '**/*.vue'],
|
|
exclude: ['utils/gettext/**'],
|
|
jsExtractorOpts: [
|
|
{
|
|
keyword: '__', // $gettext
|
|
options: {
|
|
content: {
|
|
replaceNewLines: '\n'
|
|
},
|
|
arguments: {
|
|
text: 0
|
|
}
|
|
}
|
|
},
|
|
{
|
|
keyword: '_n', // $ngettext
|
|
options: {
|
|
content: {
|
|
replaceNewLines: '\n'
|
|
},
|
|
arguments: {
|
|
text: 0,
|
|
textPlural: 1
|
|
}
|
|
}
|
|
},
|
|
{
|
|
keyword: '_x', // $pgettext
|
|
options: {
|
|
content: {
|
|
replaceNewLines: '\n'
|
|
},
|
|
arguments: {
|
|
context: 0,
|
|
text: 1
|
|
}
|
|
}
|
|
},
|
|
{
|
|
keyword: '_nx', // $npgettext
|
|
options: {
|
|
content: {
|
|
replaceNewLines: '\n'
|
|
},
|
|
arguments: {
|
|
context: 0,
|
|
text: 1,
|
|
textPlural: 2
|
|
}
|
|
}
|
|
}
|
|
]
|
|
},
|
|
output: {
|
|
path: './src/locales',
|
|
potPath: './frontend.pot',
|
|
locales: ['en', 'zh_CN', 'zh_TW'],
|
|
linguas: false
|
|
}
|
|
}
|