mirror of
https://github.com/fawney19/Aether.git
synced 2026-10-04 00:17:45 +08:00
Merge pull request #821 from Kayphoon/feat/provider-model-batch-delete-and-pin
feat(providers): multi-select model delete and pin associated models
This commit is contained in:
@@ -50,6 +50,10 @@ describe('translation coverage', () => {
|
||||
['1 维度', '1 dimension'],
|
||||
['14天0时', '14d 0h'],
|
||||
['5天 0:00:00', '5d 0:00:00'],
|
||||
['确定删除选中的 3 个模型吗?\n\n此操作不可撤销。', 'Delete the selected 3 models?\n\nThis cannot be undone.'],
|
||||
['确定删除选中的 1 个模型吗?\n\n此操作不可撤销。', 'Delete the selected 1 model?\n\nThis cannot be undone.'],
|
||||
['成功删除 2 个模型', 'Deleted 2 models'],
|
||||
['1 个模型删除失败', 'Failed to delete 1 model'],
|
||||
])('translates %s as a complete message', (source, expected) => {
|
||||
expect(translateLegacyText(source, 'en-US')).toBe(expected)
|
||||
})
|
||||
|
||||
@@ -2981,6 +2981,9 @@ const legacyDynamicPatterns: Array<[RegExp, (match: RegExpMatchArray) => string]
|
||||
[/^(.+) 个用户$/u, match => `${match[1]} users`],
|
||||
[/^有 (.+) 条格式错误$/u, match => `${match[1]} format errors`],
|
||||
[/^还有 (.+) 条错误未显示$/u, match => `${match[1]} more errors hidden`],
|
||||
[/^确定删除选中的 (\d+) 个模型吗?\n\n此操作不可撤销。$/u, match => `Delete the selected ${match[1]} ${match[1] === '1' ? 'model' : 'models'}?\n\nThis cannot be undone.`],
|
||||
[/^成功删除 (\d+) 个模型$/u, match => `Deleted ${match[1]} ${match[1] === '1' ? 'model' : 'models'}`],
|
||||
[/^(\d+) 个模型删除失败$/u, match => `Failed to delete ${match[1]} ${match[1] === '1' ? 'model' : 'models'}`],
|
||||
[/^确定删除套餐「(.+)」吗?\n\n已有订单或权益的套餐不能删除,请改为停用。删除后无法恢复。$/u, match => `Delete plan "${match[1]}"?\n\nPlans with existing orders or entitlements cannot be deleted. Disable it instead. This cannot be undone.`],
|
||||
[/^确定要删除映射 "(.+)" 吗?\n\n注意:这只会删除映射记录,不会删除 Google 上的实际文件。$/u, match => `Delete mapping "${match[1]}"?\n\nThis only deletes the mapping record and will not delete the actual file on Google.`],
|
||||
[/^确认删除批次「(.+)」吗?删除后无法恢复。$/u, match => `Delete batch "${match[1]}"? This cannot be undone.`],
|
||||
|
||||
Reference in New Issue
Block a user