Translate English built from template literals in attributes
i18n-literals now flags a template literal in a UI attribute or prop when
there are words between its values: `Remove ${email}`, `${name} — shared by
${owner}`. It cannot be a catalogue key as written, so neither the key
exemption nor the sentence-shape test applies. A template that is only
punctuation around values, like `${name} (${size})`, is left alone.
The twelve it found are now keys with placeholders: the quota bar title,
the address menu's label, a folder's subfolder unread count, a recipient
chip's remove button, the contact editor's title, shared and available
calendars and address books, the date and time fields' labels, the
attachment title's fallback name, and the free/busy bar. The bar showed
the raw JMAP busyStatus ("confirmed") and now says Busy, Tentative or
Unavailable.
11 new keys in all nine catalogues. Remove {address}, Date, Time, Busy and
Tentative already existed.
This commit is contained in:
@@ -1203,6 +1203,17 @@ export const catalog: Catalog = {
|
||||
"Send now instead": "改为立即发送",
|
||||
"Switch to plain text": "切换为纯文本",
|
||||
"Switch to rich text": "切换为富文本",
|
||||
"{used} of {total} used": "已使用 {used},共 {total}",
|
||||
"Actions for {address}": "{address} 的操作",
|
||||
"{here} here, {inSubfolders} in subfolders": "此处 {here},子文件夹 {inSubfolders}",
|
||||
"Edit {name}": "编辑 {name}",
|
||||
"{name} — shared by {owner}": "{name} — {owner} 共享",
|
||||
"{name} — from {owner}": "{name} — 来自 {owner}",
|
||||
"{label} (date)": "{label}(日期)",
|
||||
"{label} (time)": "{label}(时间)",
|
||||
"{status}: {start} – {end}": "{status}:{start}–{end}",
|
||||
"Unavailable": "不可用",
|
||||
"Attachment": "附件",
|
||||
"QR code": "二维码",
|
||||
"Draft discarded": "草稿已放弃",
|
||||
"Draft saved": "草稿已保存",
|
||||
|
||||
Reference in New Issue
Block a user