mirror of
https://github.com/stablyai/orca.git
synced 2026-10-17 00:03:08 +00:00
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:
@@ -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 {
|
||||
|
||||
@@ -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…",
|
||||
|
||||
@@ -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…",
|
||||
|
||||
Reference in New Issue
Block a user