fix(i18n): drop untranslatable plural placeholder from uploadingAttachments

The English plural-suffix hack (file{{value1}} with value1=''/'s') can't be
expressed in ja/ko/zh, whose translations correctly omit {{value1}} — but
verify:localization-catalog requires exact placeholder parity, so main
fails lint for every PR. Use the catalog's established '(s)' convention
instead and drop value1 from the caller; CJK translations stay intact.
The sync repair script would have overwritten them with English text.

Co-authored-by: Orca <help@stably.ai>
This commit is contained in:
brennanb2025
2026-07-10 01:21:48 -07:00
co-authored by Orca
parent 3f9dbba47b
commit a0874ea2f1
3 changed files with 4 additions and 4 deletions
@@ -84,8 +84,8 @@ export async function uploadNativeChatAttachmentPaths(
const pending = toast.loading(
translate(
'components.native-chat.composer.uploadingAttachments',
'Uploading {{value0}} file{{value1}} to remote…',
{ value0: paths.length, value1: paths.length === 1 ? '' : 's' }
'Uploading {{value0}} file(s) to remote…',
{ value0: paths.length }
)
)
try {
+1 -1
View File
@@ -12877,7 +12877,7 @@
"pastedImageLabel": "Pasted image",
"imagePasteFailed": "Image paste failed.",
"worktreeNotReady": "Worktree not ready — try again in a moment.",
"uploadingAttachments": "Uploading {{value0}} file{{value1}} to remote…"
"uploadingAttachments": "Uploading {{value0}} file(s) to remote…"
},
"tool": {
"running": "Running…",
+1 -1
View File
@@ -12877,7 +12877,7 @@
"pastedImageLabel": "Imagen pegada",
"imagePasteFailed": "Error al pegar imagen.",
"worktreeNotReady": "Worktree no está listo — intenta de nuevo en un momento.",
"uploadingAttachments": "Subiendo {{value0}} archivo{{value1}} al remoto…"
"uploadingAttachments": "Subiendo {{value0}} archivo(s) al remoto…"
},
"tool": {
"running": "Ejecutando…",