feat(ai): localize AI features

This commit is contained in:
Sepehr Ramezani
2026-02-15 17:38:16 +01:00
parent 8f9031f076
commit 9eb3bd912a
72 changed files with 17098 additions and 7759 deletions

View File

@@ -38,7 +38,11 @@ export function BatchOrganizationDialog({
try {
const response = await fetch('/api/ai/batch-organize', {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
credentials: 'include',
body: JSON.stringify({
language: document.documentElement.lang || 'en'
}),
})
const data = await response.json()
@@ -125,7 +129,7 @@ export function BatchOrganizationDialog({
if (data.success) {
toast.success(
t('ai.batchOrganization.success', { count: data.data.movedCount }) ||
`${data.data.movedCount} notes moved successfully`
`${data.data.movedCount} notes moved successfully`
)
onNotesMoved()
onOpenChange(false)
@@ -306,7 +310,7 @@ export function BatchOrganizationDialog({
) : (
<>
<CheckCircle2 className="h-4 w-4 mr-2" />
{t('ai.batchOrganization.apply')}
{t('ai.batchOrganization.apply', { count: selectedNotes.size })}
</>
)}
</Button>