文档 语言
语言
界面自带西班牙语和英语,并为需要的应用提供简体中文和繁体中文。用户看到的每段文字都通过键查找,共 653 个,因此添加一种语言只需一个翻译文件,无需改动编辑器。
<DocsEditor locale="en" /> // left out: the browser's language, or Englishlocale 接受代码或浏览器标签('en-US'、'es_MX'、'zh-TW')。界面不支持的语言会显示为英语。
切换语言
编辑器可以使用自带的两种语言、其模块中的简体中文,以及一种刚开始翻译的法语:只翻译了状态栏、样式和“文件”菜单中显示的内容,其他尚未翻译。
正在打开编辑器…
切换到法语后打开菜单(☰):Fichier、Ouvrir un document…、Exporter,然后是英文的 Print… 和 Page setup…,因为翻译文件中没有它们。部分翻译也能使用;未翻译的部分以英语显示。切换语言会重新构建工具栏;文档及其历史记录保持不变。
中文
简体中文和繁体中文均已完整翻译,用词与 Word 一致:简体中文按中国大陆的用法,繁体中文按台湾的用法。它们与编辑器分开提供,不需要的应用就不必携带这 653 段文本。
import zhHans from '@rebodocs/editor/locales/zh-Hans'; // Simplified
import zhHant from '@rebodocs/editor/locales/zh-Hant'; // Traditional
// A browser in Chinese shows the one it asks for; locale="zh-Hans" for everyone
<DocsEditor locales={{ 'zh-Hans': zhHans, 'zh-Hant': zhHant }} />
// …or for an interface of your own
addLocale('zh-Hans', zhHans);
addLocale('zh-Hant', zhHant);zh、zh-CN和zh-SG对应简体中文;zh-TW、zh-HK、zh-MO和zh-Hant对应繁体中文。未添加的那一种的标签会显示为英语,与其他未添加的语言一样。- 添加中文后,中文浏览器会自动显示中文:在应用设置语言之前,如果浏览器优先要求的语言排在当前显示的语言之前,
addLocale会采用它。提供locale或调用setLocale之后,则以应用设置的语言为准。 - 在中文界面中,工具栏的字体框会提供 Word 自带的中文字体:等线、宋体、黑体、微软雅黑、楷体和仿宋;繁体中文则为新细明体、细明体、微软正黑体和标楷体。选择其中一种时,会像 Word 一样写为该 run 中文文字的字体。
- 中文文字本身无需任何设置:无论界面是什么语言,都会像 Word 一样在任意两个字符之间换行,并且不会让“。”和“,”出现在行首。
添加语言
一个翻译文件:用仓库中的命令创建,然后交给编辑器。
- 1
创建文件
文件中会写入所有英文文本,供你翻译。语言的自称已经写好:fr 为“Français”。
npm run locale -- fr texts/fr.json # every text in English, to translate npm run locale -- fr texts/fr.json --from es # or starting from the Spanish - 2
翻译
它是普通的 JSON,每项是一个键和一段文本。花括号中的内容保持不变:有 70 段文本包含由编辑器填入的
{name}。{ "locale.name": "Français", "menu.save": "Enregistrer", "status.page": "Page {page} sur {pages}" } - 3
交给编辑器
import fr from './texts/fr.json'; <DocsEditor locales={{ fr }} locale="fr" features={{ language: true }} />import { addLocale, setLocale } from '@rebodocs/react'; // an interface of your own addLocale('fr', fr); setLocale('fr');启用
features.language后,该语言会自动出现在菜单中,使用它自己的名称:locale.name;文件中没有时,使用浏览器对该语言的称呼。
复数形式更多的语言
西班牙语和英语在表示数量时,单数一种说法,其余一种说法。俄语有四种复数类别,阿拉伯语有六种,中文只有一种。有 11 段文本与数字连用,每种语言可以为自己的每个复数类别提供一种形式,写作 <key>.<category>;编辑器用 Intl.PluralRules 来选择。某个形式缺失时使用该键的文本。
{
"status.words": "слов",
"status.words.one": "слово",
"status.words.few": "слова",
"status.words.many": "слов"
}在俄语中,“one”是 1、21、31…;“few”是 2 到 4、22 到 24…;“many”是 5 到 20、25 到 30…:21 个词写作 21 слово,与单数说法相同。
npm run locale 会把该语言所需的形式写进文件,与其他文本一起翻译:俄语为 one、few 和 many,德语和中文则不需要。与数字连用的文本有 status.words、menu.pages、status.chars、var.fillFields、var.blockList、compare.count、grid.many、table.columns、table.rows、var.uses 和 a11y.long。
保持更新
界面新增文本时,对同一个文件运行同样的命令。
npm run locale -- fr texts/fr.json
# texts/fr.json: 675 texts, 6 new.
# To translate (same as English): 6.保留
文件中已有的每段文本,无论是否已翻译。
添加
界面此后新增的文本,以英语(或 --from 指定的语言)写入。
删除
界面中已不存在的键。
报告
共有多少段文本、新增多少段,以及还有多少段与英文相同;最多按键列出 20 个。
与英文相同的文本会算作待翻译,除非它短到无法判断(如“OK”“%”)。某种语言缺少的文本以英语显示。
修改已有语言的用词
方法相同,只提供要修改的文本:该语言的其他部分保持不变。可以在上面的演示中试试。
<DocsEditor locale="en" locales={{ en: { 'menu.save': 'Save to cloud' } }} />
// …or from anywhere, before or after it is drawn
addLocale('en', { 'menu.save': 'Save to cloud' });之后再传给 locales 属性或 addLocale 的文本会立即生效:如果属于当前显示的语言,工具栏会用它们重新构建。
翻译的范围
界面
全部工具栏、菜单、面板、对话框、状态栏、按钮的标题以及告诉屏幕阅读器的内容。每个部分都带有自己的语言(lang),以便屏幕阅读器用正确的语音朗读。
文档
不翻译那是用户自己的文字。在英文界面中打开西班牙语合同,合同仍是西班牙语。DOCX 会声明文字所用的语言,供 Word 拼写检查使用:取自 language 属性,或界面语言加上浏览器的地区。
编辑器写入的内容
插入时页码中的“第 1 页,共 3 页”和签名栏的标题会在插入时以界面语言写入。之后它们就是文档的文字,不再改变。
标准样式
显示为译名“正文”“标题”和“标题 1–3”会显示为界面语言的名称(如 Título 1 或 Heading 1);文档自定义的样式保留原名。文件中保存的样式仍是 Word 认识的样子。
日期和数字
按语言显示版本和批注的日期、状态栏和查找栏中的计数、标尺的厘米数以及行距:西班牙语为 1,15,英语和中文为 1.15。
按钮上的字母
也是文本加粗、倾斜、下划线和删除线以字母显示:英语为 B I U S,西班牙语为 N K S T。它们是 mark.bold.letter 等键,与其他文本一样可以翻译。
useDocsStyles 也会给出翻译后的标准样式名,语言改变时会重新给出。
自己的界面
基于headless hooks构建的界面有自己的标签,库对它们一无所知。要让它们跟随同一种语言,可以把它们放在一张表中,并在绘制的地方读取当前语言。
import { useSyncExternalStore } from 'react';
import { getLocale, onLocaleChange } from '@rebodocs/react';
const EN = { Guardar: 'Save', Imprimir: 'Print' } as const;
/** A component that calls this is drawn again when the language changes. */
export function useTexts() {
const locale = useSyncExternalStore(onLocaleChange, getLocale);
return (text: keyof typeof EN) => (locale === 'es' ? text : EN[text]);
}
function Save() {
const tr = useTexts();
return <button>{tr('Guardar')}</button>;
}库中已有的词可以用 t('menu.save') 获取,同样用这个 hook 包裹以便重新绘制。自己的语言选择器只需调用 setLocale('en')。React 演示在 apps/demo/src/headless/texts.ts 中对它的所有标签都这样做了。
在代码中
语言相关的所有函数,来自 @rebodocs/react(或 @rebodocs/editor),以及类型 MessageKey 和 Messages。
import { t, messages, locales } from '@rebodocs/react';
t('status.page', { page: 2, pages: 9 }); // "Page 2 of 9"
messages('en')['menu.save']; // "Save"
locales(); // [{ code: 'es', name: 'Español' }, …]- t(key: MessageKey, values?: Record<string, string | number>) → string
- 界面语言下的文本,其中每个 {name} 都会替换为对应的值。没有值的名称保持原样。
- getLocale() → string
- 界面语言:在设置之前,为浏览器语言中它支持的第一种,否则为英语。
- setLocale(locale: string) → nothing
- 设置语言:可以是代码、已添加的语言或浏览器标签。不支持的语言会变成英语。会通知监听者;如果已经是该语言,则不通知。
- onLocaleChange(listener: () => void) → () => void
- 语言改变时调用 listener。返回用于取消监听的函数。
- addLocale(locale: string, texts: Texts) → nothing
- 添加一种语言,或修改已有语言的文本。未提供的文本以英语显示。如果是当前显示的语言,会通知监听者。在应用设置语言之前,如果这正是浏览器要求的语言,就会切换到它。
- plural(key: MessageKey, n: number, values?: Record<string, string | number>) → string
- 描述 n 个事物的文本:该语言为 n 的复数类别提供的形式;没有时,如果类别是“one”则用单数文本;否则用该键的文本。
- messages(locale?: string) → Messages
- 某种语言的所有文本(按键):不传参数时为英语。返回的是副本,修改它不会产生任何影响。
- locales() → { code: string; name: string }[]
- 现有的语言,每种都以其自身语言写出名称:即菜单中列出的内容。
现有的文本
每个键及其西班牙语、英语和简体中文文本,在构建本页时从编辑器读取。{name} 由编辑器填入。
| 键 | Español | English | 简体中文 |
|---|---|---|---|
| locale.name | Español | English | 简体中文 |
| language | Idioma | Language | 语言 |
| area.header | Encabezado | Header | 页眉 |
| area.firstHeader | Encabezado de la primera página | First page header | 首页页眉 |
| area.firstFooter | Pie de la primera página | First page footer | 首页页脚 |
| area.footer | Pie de página | Footer | 页脚 |
| area.section | Sección {n} | Section {n} | 第 {n} 节 |
| area.footnote | Nota al pie | Footnote | 脚注 |
| area.endnote | Nota al final | Endnote | 尾注 |
| area.textbox | Cuadro de texto | Text box | 文本框 |
| page.word | Página | Page | 页 |
| page.of | de | of | / |
| style.normal | Normal | Normal | 正文 |
| style.title | Título | Title | 标题 |
| style.subtitle | Subtítulo | Subtitle | 副标题 |
| style.heading1 | Título 1 | Heading 1 | 标题 1 |
| style.heading2 | Título 2 | Heading 2 | 标题 2 |
| style.heading3 | Título 3 | Heading 3 | 标题 3 |
| sign.adviser | ASESOR | ADVISER | 顾问 |
| sign.client | CLIENTE | CLIENT | 客户 |
| sign.name | NOMBRE COMPLETO | FULL NAME | 姓名 |
| mark.bold | Negrita | Bold | 加粗 |
| mark.italic | Cursiva | Italic | 倾斜 |
| mark.underline | Subrayado | Underline | 下划线 |
| mark.strike | Tachado | Strikethrough | 删除线 |
| a11y.document | Documento | Document | 文档 |
| a11y.endOfParagraph | fin de párrafo | end of paragraph | 段落结束 |
| a11y.blank | en blanco | blank | 空白 |
| a11y.space | espacio | space | 空格 |
| a11y.tab | tabulador | tab | 制表符 |
| a11y.lineBreak | salto de línea | line break | 换行符 |
| a11y.pageBreak | salto de página | page break | 分页符 |
| a11y.object | objeto | object | 对象 |
| a11y.footnoteRef | Nota al pie {n} | Footnote {n} | 脚注 {n} |
| a11y.endnoteRef | Nota al final {n} | Endnote {n} | 尾注 {n} |
| a11y.picture | Imagen: {alt} | Picture: {alt} | 图片:{alt} |
| a11y.pictureNoAlt | Imagen sin descripción | Picture without a description | 没有说明的图片 |
| a11y.textBox | Cuadro de texto | Text box | 文本框 |
| status.language | Idioma del texto: para la ortografía, la voz de un lector de pantalla y cómo se escriben fechas y números | Language of the text: for spelling, the voice of a screen reader, and how dates and numbers are written | 文本语言:用于拼写检查、屏幕阅读器的语音,以及日期和数字的写法 |
| alt.word | Descripción | Description | 说明 |
| alt.title | Qué muestra la imagen, para quien no la ve: lo que dice un lector de pantalla | What the picture shows, for whoever cannot see it: what a screen reader says | 图片显示的内容,供看不到图片的人使用:屏幕阅读器会朗读它 |
| alt.placeholder | Qué muestra la imagen | What the picture shows | 图片显示的内容 |
| a11y.long | {start}… ({count} caracteres) | {start}… ({count} characters) | {start}…({count} 个字符) |
| a11y.selected | {text}, seleccionado | {text}, selected | {text},已选中 |
| a11y.unselected | {text}, sin seleccionar | {text}, unselected | {text},未选中 |
| a11y.allSelected | Todo seleccionado | All selected | 已全选 |
| a11y.deleted | {text}, borrado | {text}, deleted | {text},已删除 |
| a11y.page | Página {page} | Page {page} | 第 {page} 页 |
| a11y.cell | Tabla, fila {row}, columna {column} | Table, row {row}, column {column} | 表格,第 {row} 行,第 {column} 列 |
| a11y.leftTable | Fuera de la tabla | Out of the table | 已离开表格 |
| a11y.bulletList | Lista con viñetas | Bulleted list | 项目符号列表 |
| a11y.numberList | Lista numerada | Numbered list | 编号列表 |
| a11y.level | nivel {level} | level {level} | 第 {level} 级 |
| a11y.link | Enlace a {href} | Link to {href} | 链接到 {href} |
| a11y.inserted | Insertado por {author} | Inserted by {author} | 由 {author} 插入 |
| a11y.removed | Eliminado por {author} | Deleted by {author} | 由 {author} 删除 |
| a11y.formatted | Formato cambiado por {author} | Formatting changed by {author} | 由 {author} 更改格式 |
| a11y.noted | Con nota | With a note | 有批注 |
| a11y.on | Se activó {name} | {name}, on | {name},开 |
| a11y.off | Se desactivó {name} | {name}, off | {name},关 |
| a11y.undone | Deshecho | Undone | 已撤销 |
| a11y.redone | Rehecho | Redone | 已恢复 |
| a11y.nothingToUndo | Nada que deshacer | Nothing to undo | 没有可撤销的操作 |
| a11y.nothingToRedo | Nada que rehacer | Nothing to redo | 没有可恢复的操作 |
| a11y.pasted | Pegado | Pasted | 已粘贴 |
| a11y.body | Cuerpo del documento | Body of the document | 文档正文 |
| a11y.hint | Alt+F10: barra de herramientas. F6: siguiente sección. Escape en una barra: volver al documento. {reader}: modo lector de pantalla. | Alt+F10: toolbar. F6: next section. Escape in a bar: back to the document. {reader}: screen reader mode. | Alt+F10:工具栏。F6:下一个区域。在工具栏中按 Esc:返回文档。{reader}:屏幕阅读器模式。 |
| a11y.statusBar | Barra de estado | Status bar | 状态栏 |
| a11y.panel | Panel lateral | Side panel | 侧边栏 |
| a11y.readerOn | Modo lector de pantalla activado | Screen reader mode on | 屏幕阅读器模式已开启 |
| a11y.readerOff | Modo lector de pantalla desactivado | Screen reader mode off | 屏幕阅读器模式已关闭 |
| a11y.ruler | Regla | Ruler | 标尺 |
| a11y.cm | {value} cm | {value} cm | {value} 厘米 |
| a11y.tabKind | Tipo de tabulación: {kind}. Enter: cambiarlo. Insert: poner una en el cursor | Tab stop kind: {kind}. Enter: change it. Insert: set one at the caret | 制表位类型:{kind}。Enter:更改类型。Insert:在光标处设置一个 |
| a11y.tabStop | {kind}. Flechas para moverla, Suprimir para quitarla | {kind}. Arrows to move it, Delete to remove it | {kind}。方向键移动,Delete 删除 |
| a11y.tabAt | {kind}, {value} | {kind}, {value} | {kind},{value} |
| a11y.find | Buscar y reemplazar | Find and replace | 查找和替换 |
| a11y.bubbleHint | Tab: ir a la barra | Tab: go to the bar | Tab:转到工具栏 |
| slash.label | Comandos | Commands | 命令 |
| slash.hint | Escribe para filtrar; flechas para elegir, Intro para insertar, Escape para dejarlo | Type to filter; arrows to choose, Enter to insert, Escape to leave it | 输入以筛选;方向键选择,Enter 插入,Esc 退出 |
| slash.none | Sin resultados | No results | 没有结果 |
| slash.text | Texto | Text | 文本 |
| slash.insert | Insertar | Insert | 插入 |
| slash.template | Plantilla | Template | 模板 |
| slash.more | Más | More | 更多 |
| form.outside | Solo se pueden cambiar las zonas marcadas | Only the marked areas can be changed | 只能更改标记的区域 |
| form.zone | Zona editable | Editable area | 可编辑区域 |
| form.make | Editable | Editable | 可编辑 |
| form.makeTitle | Solo esto se podrá cambiar cuando se restrinja la edición | Only this can be changed once editing is restricted | 限制编辑后,只有这里可以更改 |
| form.makeMenu | Marcar la selección como editable | Mark the selection as editable | 将所选内容标记为可编辑 |
| form.remove | Quitar zona editable | Remove editable area | 删除可编辑区域 |
| form.removeShort | Quitar | Remove | 删除 |
| form.restrict | Restringir edición a las zonas editables | Restrict editing to the editable areas | 仅允许编辑可编辑区域 |
| form.fieldTitle | Un hueco para llenar cuando se restrinja la edición | A blank to fill in once editing is restricted | 限制编辑后需要填写的空白处 |
| suggest.label | Variables | Variables | 变量 |
| suggest.inDocument | Ya está en el documento | Already in the document | 文档中已有 |
| suggest.example | Por ejemplo: {value} | For example: {value} | 例如:{value} |
| suggest.new | Variable nueva | New variable | 新变量 |
| suggest.type | Escribe el nombre de la variable | Type the name of the variable | 输入变量名称 |
| slash.normalTitle | Texto de párrafo, sin título | Paragraph text, not a heading | 段落正文,不是标题 |
| slash.headingTitle | Título de nivel {n} | Heading of level {n} | {n} 级标题 |
| slash.bulletsTitle | Cada párrafo con una viñeta | Each paragraph with a bullet | 每个段落带项目符号 |
| slash.numbersTitle | Cada párrafo con su número: 1, 2, 3 | Each paragraph with its number: 1, 2, 3 | 每个段落带编号:1、2、3 |
| slash.textBoxTitle | Un cuadro con texto en la página | A box with text on the page | 页面上的一个文本框 |
| slash.footnoteTitle | Una nota numerada al pie de la página | A numbered note at the foot of the page | 页面底部的编号注释 |
| slash.noteTitle | Una nota de revisión sobre la palabra anterior | A review note on the word before | 对前一个词的审阅批注 |
| grid.earlier | Mover {name} antes | Move {name} earlier | 将 {name} 前移 |
| grid.later | Mover {name} después | Move {name} later | 将 {name} 后移 |
| grid.place | {name}, posición {n} de {total} | {name}, position {n} of {total} | {name},第 {n} 个,共 {total} 个 |
| color.none | sin color | no color | 无颜色 |
| color.black | negro | black | 黑色 |
| color.white | blanco | white | 白色 |
| color.gray | gris | gray | 灰色 |
| color.red | rojo | red | 红色 |
| color.orange | naranja | orange | 橙色 |
| color.brown | café | brown | 棕色 |
| color.yellow | amarillo | yellow | 黄色 |
| color.olive | verde olivo | olive | 橄榄色 |
| color.gold | dorado | gold | 金色 |
| color.lime | verde limón | lime | 酸橙色 |
| color.sky | celeste | sky blue | 天蓝色 |
| color.green | verde | green | 绿色 |
| color.cyan | cian | cyan | 青色 |
| color.blue | azul | blue | 蓝色 |
| color.purple | morado | purple | 紫色 |
| color.magenta | magenta | magenta | 洋红色 |
| color.pink | rosa | pink | 粉色 |
| color.dark | {name} oscuro | dark {name} | 深{name} |
| color.light | {name} claro | light {name} | 浅{name} |
| color.current | {name}: {color} | {name}: {color} | {name}:{color} |
| mark.bold.letter | N | B | B |
| mark.italic.letter | K | I | I |
| mark.underline.letter | S | U | U |
| mark.strike.letter | T | S | S |
| toolbar.label | Formato | Formatting | 格式 |
| pageNumber.format | Formato | Format | 格式 |
| endnotes.title | Notas al final | Endnotes | 尾注 |
| endnotes.inSections | Al final de cada sección | At the end of each section | 在每节末尾 |
| endnotes.restart | Empezar de nuevo en esta sección | Start again in this section | 在本节重新编号 |
| endnotes.format | Numeradas {example} | Numbered {example} | 编号 {example} |
| toolbar.find | Buscar y reemplazar | Find and replace | 查找和替换 |
| toolbar.more | Más herramientas | More tools | 更多工具 |
| toolbar.undo | Deshacer | Undo | 撤销 |
| toolbar.redo | Rehacer | Redo | 恢复 |
| table.cells | {columns} por {rows} | {columns} by {rows} | {columns} × {rows} |
| table.column | 1 columna | 1 column | 1 列 |
| table.columns | {n} columnas | {n} columns | {n} 列 |
| table.row | 1 fila | 1 row | 1 行 |
| table.rows | {n} filas | {n} rows | {n} 行 |
| menu.title | Menú del documento | Document menu | 文档菜单 |
| toolbar.panel | Panel: esquema, variables, notas y cambios | Panel: outline, variables, notes and changes | 侧边栏:大纲、变量、批注和修订 |
| toolbar.open | Abrir un documento | Open a document | 打开文档 |
| toolbar.download | Descargar como .docx | Download as .docx | 下载为 .docx |
| toolbar.style | Estilo de párrafo | Paragraph style | 段落样式 |
| toolbar.font | Fuente | Font | 字体 |
| toolbar.fontSize | Tamaño de fuente | Font size | 字号 |
| toolbar.color | Color del texto | Text color | 字体颜色 |
| toolbar.highlight | Color de resaltado | Highlight color | 突出显示颜色 |
| toolbar.noHighlight | Sin resaltado | No highlight | 无突出显示 |
| align.left | Alinear a la izquierda | Align left | 左对齐 |
| align.center | Centrar | Center | 居中 |
| align.right | Alinear a la derecha | Align right | 右对齐 |
| align.justify | Justificar | Justify | 两端对齐 |
| spacing.title | Interlineado, espaciado y paginación | Line spacing, paragraph spacing and pagination | 行距、段落间距和分页 |
| spacing.line | Interlineado | Line spacing | 行距 |
| spacing.before | Espacio antes del párrafo | Space before paragraph | 段前间距 |
| spacing.after | Espacio después del párrafo | Space after paragraph | 段后间距 |
| spacing.pagination | Paginación | Pagination | 分页 |
| spacing.widows | Control de viudas y huérfanas | Widow and orphan control | 孤行控制 |
| spacing.keepNext | Conservar con el siguiente | Keep with next | 与下段同页 |
| spacing.keepLines | Conservar líneas juntas | Keep lines together | 段中不分页 |
| spacing.breakBefore | Salto de página antes | Page break before | 段前分页 |
| indent.less | Reducir sangría | Decrease indent | 减少缩进量 |
| indent.more | Aumentar sangría | Increase indent | 增加缩进量 |
| indent.dialog | Sangrías… | Indents… | 缩进… |
| indent.title | Sangrías del párrafo | Paragraph indents | 段落缩进 |
| indent.left | Izquierda | Left | 左侧 |
| indent.right | Derecha | Right | 右侧 |
| indent.special | Especial | Special | 特殊 |
| indent.none | Ninguna | None | 无 |
| indent.firstLine | Primera línea | First line | 首行缩进 |
| indent.hanging | Francesa | Hanging | 悬挂缩进 |
| indent.by | En | By | 缩进值 |
| table.insert | Insertar tabla | Insert table | 插入表格 |
| table.signatures | Insertar firmas | Insert signatures | 插入签名 |
| table.merge | Combinar celdas | Merge cells | 合并单元格 |
| table.split | Dividir celda | Split cell | 拆分单元格 |
| table.rowAbove | Insertar fila encima | Insert row above | 在上方插入行 |
| table.rowBelow | Insertar fila debajo | Insert row below | 在下方插入行 |
| table.columnLeft | Insertar columna a la izquierda | Insert column to the left | 在左侧插入列 |
| table.columnRight | Insertar columna a la derecha | Insert column to the right | 在右侧插入列 |
| table.deleteRow | Eliminar fila | Delete row | 删除行 |
| table.deleteColumn | Eliminar columna | Delete column | 删除列 |
| table.deleteTable | Eliminar tabla | Delete table | 删除表格 |
| table.rowHeight | Alto de fila | Row height | 行高 |
| table.rowAuto | Auto | Auto | 自动 |
| table.rowExact | Exacto | Exact | 固定值 |
| table.hideBorders | Ocultar los bordes de la tabla | Hide the table borders | 隐藏表格边框 |
| table.showBorders | Mostrar los bordes de la tabla | Show the table borders | 显示表格边框 |
| table.cellBorders | Bordes de la celda | Cell borders | 单元格边框 |
| table.shading | Sombreado | Shading | 底纹 |
| table.noShading | Sin sombreado | No shading | 无底纹 |
| table.headerRow | Repetir como fila de encabezado | Repeat as header row | 重复标题行 |
| table.align | Texto en la celda | Text in the cell | 单元格中的文字 |
| table.alignTop | Arriba | Top | 顶端 |
| table.alignCenter | Al centro | Middle | 居中 |
| table.alignBottom | Abajo | Bottom | 底端 |
| table.direction | Dirección del texto | Text direction | 文字方向 |
| table.directionLevel | Horizontal | Horizontal | 水平 |
| table.directionUp | De abajo arriba | Bottom to top | 从下到上 |
| table.directionDown | De arriba abajo | Top to bottom | 从上到下 |
| table.lineStyle | Línea de los bordes | Border line | 边框线 |
| table.lineSingle | Continua | Solid | 实线 |
| table.lineDouble | Doble | Double | 双线 |
| table.lineDashed | Discontinua | Dashed | 虚线 |
| table.lineDotted | Punteada | Dotted | 点线 |
| columns.title | Columnas | Columns | 分栏 |
| columns.one | Una | One | 一栏 |
| columns.two | Dos | Two | 两栏 |
| columns.three | Tres | Three | 三栏 |
| columns.left | Una estrecha a la izquierda | A narrow one on the left | 左侧一窄栏 |
| columns.right | Una estrecha a la derecha | A narrow one on the right | 右侧一窄栏 |
| columns.separator | Línea entre columnas | Line between columns | 分隔线 |
| columns.break | Salto de columna | Column break | 分栏符 |
| columns.forSection | Para la sección donde está el cursor | For the section the cursor is in | 应用于光标所在的节 |
| columns.forSelection | Para lo seleccionado, en una sección propia | For the selection, as a section of its own | 应用于所选内容,作为单独的一节 |
| toolbar.image | Insertar imagen (varias a la vez van en cuadrícula) | Insert image (several at once go in a grid) | 插入图片(一次插入多张时排成网格) |
| toolbar.page | Encabezado, pie de página y saltos | Header, footer and breaks | 页眉、页脚和分隔符 |
| toolbar.editHeader | Editar el encabezado | Edit the header | 编辑页眉 |
| toolbar.editFooter | Editar el pie de página | Edit the footer | 编辑页脚 |
| toolbar.pageBreak | Insertar salto de página | Insert page break | 插入分页符 |
| pageNumber.title | Número de página | Page number | 页码 |
| pageNumber.none | Ninguno | None | 无 |
| pageNumber.noneTitle | Sin número de página | No page number | 不显示页码 |
| pageNumber.inHeader | En el encabezado | In the header | 在页眉中 |
| pageNumber.footer | Pie | Footer | 页脚 |
| pageNumber.inFooter | En el pie de página | In the footer | 在页脚中 |
| pageNumber.position | Posición | Position | 位置 |
| pageNumber.left | A la izquierda | Left | 左侧 |
| pageNumber.center | Al centro | Center | 居中 |
| pageNumber.right | A la derecha | Right | 右侧 |
| list.bullet | Lista con viñetas | Bulleted list | 项目符号列表 |
| list.number | Lista numerada | Numbered list | 编号列表 |
| focus.mode | Modo concentración | Focus mode | 专注模式 |
| focus.enter | Modo concentración ({keys}) | Focus mode ({keys}) | 专注模式({keys}) |
| focus.exit | Salir | Leave | 退出 |
| list.bulletStyles | Formatos de viñeta | Bullet styles | 项目符号样式 |
| list.numberStyles | Formatos de numeración | Numbering styles | 编号样式 |
| list.bulletsOfLevel | Viñetas del nivel | Bullets of this level | 本级项目符号 |
| list.numbersOfLevel | Números del nivel | Numbers of this level | 本级编号 |
| list.styleOf | Formato {sample} | Style {sample} | 样式 {sample} |
| list.down | Bajar un nivel (sublista) | Down a level (sublist) | 降一级(子列表) |
| list.up | Subir un nivel | Up a level | 升一级 |
| list.restart | Reiniciar en 1 desde aquí | Restart at 1 here | 从 1 重新开始编号 |
| list.continue | Continuar la numeración anterior | Continue the previous numbering | 继续前一列表的编号 |
| list.hint | Tab y ⇧Tab cambian el nivel desde cualquier parte del renglón. Enter en un renglón vacío sube un nivel; en el primero, termina la lista. | Tab and ⇧Tab change the level from anywhere in the line. Enter on an empty line goes up a level; on the first, it ends the list. | Tab 和 ⇧Tab 可在行中任意位置更改级别。在空行按 Enter 升一级;在第一级则结束列表。 |
| table.word | Tabla | Table | 表格 |
| status.page | Página {page} de {pages} | Page {page} of {pages} | 第 {page} 页,共 {pages} 页 |
| status.word | palabra | word | 字 |
| status.words | palabras | words | 字 |
| status.char | carácter | character | 个字符 |
| status.chars | caracteres | characters | 个字符 |
| status.of | {n} de {total} | {n} of {total} | {n}/{total} |
| view.flow | Texto al ancho de la ventana, sin páginas | Text as wide as the window, without pages | 文字与窗口同宽,不分页 |
| view.column | Una página | One page | 单页 |
| view.spread | Dos páginas | Two pages | 双页 |
| view.grid | Cuadrícula de páginas | Grid of pages | 多页网格 |
| view.fitWidth | Ajustar al ancho de la ventana | Fit to the window width | 适应窗口宽度 |
| view.fitPage | Ver la página completa | Show the whole page | 显示整页 |
| zoom.reset | Volver al 100 % | Back to 100% | 恢复到 100% |
| zoom.out | Alejar | Zoom out | 缩小 |
| zoom.in | Acercar | Zoom in | 放大 |
| ruler.marginLeft | Margen izquierdo | Left margin | 左边距 |
| ruler.marginRight | Margen derecho | Right margin | 右边距 |
| ruler.first | Sangría de primera línea | First line indent | 首行缩进 |
| ruler.hanging | Sangría francesa | Hanging indent | 悬挂缩进 |
| ruler.left | Sangría izquierda | Left indent | 左缩进 |
| ruler.right | Sangría derecha | Right indent | 右缩进 |
| ruler.tabLeft | Tabulación izquierda | Left tab | 左对齐制表位 |
| ruler.tabCenter | Tabulación centrada | Center tab | 居中制表位 |
| ruler.tabRight | Tabulación derecha | Right tab | 右对齐制表位 |
| ruler.tabDecimal | Tabulación decimal | Decimal tab | 小数点对齐制表位 |
| ruler.tabHint | Clic para cambiar de tipo; clic en la regla para poner una | Click to change the kind; click on the ruler to set one | 单击可更改类型;在标尺上单击可设置制表位 |
| ruler.tabDrag | Arrastra para moverla, o fuera de la regla para quitarla | Drag to move it, or off the ruler to remove it | 拖动可移动,拖出标尺可删除 |
| find.count | {index} de {total} | {index} of {total} | {index}/{total} |
| find.find | Buscar | Find | 查找 |
| find.replaceWith | Reemplazar por | Replace with | 替换为 |
| find.previous | Anterior (⇧↵) | Previous (⇧↵) | 上一个(⇧↵) |
| find.next | Siguiente (↵) | Next (↵) | 下一个(↵) |
| find.matchCase | Distinguir mayúsculas y minúsculas | Match case | 区分大小写 |
| find.wholeWord | Solo palabras completas | Whole words only | 全字匹配 |
| find.replace | Reemplazar | Replace | 替换 |
| find.close | Cerrar (Esc) | Close (Esc) | 关闭(Esc) |
| find.replaceOne | Reemplazar esta | Replace this one | 替换此处 |
| find.replaceAll | Reemplazar todas | Replace all | 全部替换 |
| find.all | Todas | All | 全部 |
| find.none | Sin resultados | No results | 没有结果 |
| paper.letter | Carta (21,6 × 27,9 cm) | Letter (8.5 × 11 in) | Letter(8.5 × 11 英寸) |
| paper.a4 | A4 (21 × 29,7 cm) | A4 (21 × 29.7 cm) | A4(21 × 29.7 厘米) |
| paper.legal | Oficio (21,6 × 35,6 cm) | Legal (8.5 × 14 in) | Legal(8.5 × 14 英寸) |
| margins.normal | Normales (2,54 cm) | Normal (2.54 cm) | 常规(2.54 厘米) |
| margins.narrow | Estrechos (1,27 cm) | Narrow (1.27 cm) | 窄(1.27 厘米) |
| margins.moderate | Moderados (2,54 y 1,91 cm) | Moderate (2.54 and 1.91 cm) | 适中(2.54 和 1.91 厘米) |
| margins.wide | Anchos (2,54 y 5,08 cm) | Wide (2.54 and 5.08 cm) | 宽(2.54 和 5.08 厘米) |
| file.default | documento | document | 文档 |
| pageSetup.note | Los cambios se ven al momento en el documento. Cancelar deja la página como estaba. | Changes show in the document at once. Cancel leaves the page as it was. | 更改会立即显示在文档中。取消则页面保持原样。 |
| menu.close | Cerrar el menú | Close the menu | 关闭菜单 |
| file.untitled | Documento sin título | Untitled document | 无标题文档 |
| menu.file | Archivo | File | 文件 |
| menu.open | Abrir documento… | Open document… | 打开文档… |
| menu.save | Guardar | Save | 保存 |
| menu.saveAs | Guardar como… | Save as… | 另存为… |
| menu.export | Exportar | Export | 导出 |
| menu.openShort | Abrir | Open | 打开 |
| toolbar.tabs | Herramientas | Tools | 工具 |
| toolbar.tabFormat | Formato | Format | 格式 |
| toolbar.tabInsert | Insertar | Insert | 插入 |
| toolbar.tabPage | Página | Page | 页面 |
| menu.pages | {n} páginas | {n} pages | {n} 页 |
| menu.page | {n} página | {n} page | {n} 页 |
| menu.unsaved | Sin guardar | Not saved | 未保存 |
| menu.document | Documento | Document | 文档 |
| menu.back | Volver al documento | Back to the document | 返回文档 |
| menu.docxNote | Para seguir editándolo, aquí o en Word | To go on editing it, here or in Word | 可在这里或 Word 中继续编辑 |
| menu.pdfNote | Para enviar o imprimir; etiquetado para lectores de pantalla | To send or print; tagged for screen readers | 用于发送或打印;带有供屏幕阅读器使用的标记 |
| menu.mdNote | Solo el texto, para notas y la web | The text alone, for notes and the web | 仅文本,用于笔记和网页 |
| menu.printNote | Con las fuentes de esta computadora | With the fonts of this computer | 使用这台电脑上的字体 |
| menu.noLetterhead | Sin membrete | No letterhead | 无信头 |
| menu.letterheadOn | Un membrete bajo cada página | A letterhead under every page | 每页底下都有信头 |
| menu.marginsCustom | márgenes propios | own margins | 自定义边距 |
| menu.interface | Idioma de la interfaz | Interface language | 界面语言 |
| menu.theme | Apariencia | Appearance | 外观 |
| theme.light | Claro | Light | 浅色 |
| theme.dark | Oscuro | Dark | 深色 |
| theme.auto | Como el sistema | As the system | 跟随系统 |
| menu.print | Imprimir… | Print… | 打印… |
| pageSetup.title | Configuración de la página | Page setup | 页面设置 |
| pageSetup.applyTo | Aplicar a | Apply to | 应用于 |
| pageSetup.thisSection | Esta sección | This section | 本节 |
| pageSetup.wholeDocument | Todo el documento | Whole document | 整篇文档 |
| pageSetup.open | Configuración de la página… | Page setup… | 页面设置… |
| accept | Aceptar | OK | 确定 |
| pageSetup.custom | Personalizado | Custom | 自定义 |
| pageSetup.size | Tamaño | Size | 纸张大小 |
| pageSetup.width | Ancho | Width | 宽度 |
| pageSetup.height | Alto | Height | 高度 |
| pageSetup.portrait | Vertical | Portrait | 纵向 |
| pageSetup.landscape | Horizontal | Landscape | 横向 |
| pageSetup.orientation | Orientación | Orientation | 纸张方向 |
| pageSetup.margins | Márgenes | Margins | 页边距 |
| pageSetup.top | Superior | Top | 上 |
| pageSetup.bottom | Inferior | Bottom | 下 |
| pageSetup.left | Izquierdo | Left | 左 |
| pageSetup.right | Derecho | Right | 右 |
| cancel | Cancelar | Cancel | 取消 |
| type.text | Texto | Text | 文本 |
| type.date | Fecha | Date | 日期 |
| type.dateLong | Fecha larga | Long date | 长日期 |
| type.dateFull | Fecha completa | Full date | 完整日期 |
| type.number | Número | Number | 数字 |
| type.currency | Moneda | Currency | 货币 |
| case.none | Aa | Aa | Aa |
| case.upper | MAYÚSCULAS | UPPERCASE | 大写 |
| case.lower | minúsculas | lowercase | 小写 |
| case.capital | Nombre Propio | Title Case | 首字母大写 |
| panel.outline | Esquema | Outline | 大纲 |
| panel.variables | Variables | Variables | 变量 |
| panel.outlineEmpty | Aquí aparecen los títulos del documento. Da a un párrafo el estilo <b>Título 1</b>, o empieza una línea con <code>#</code> y un espacio. | The headings of the document appear here. Give a paragraph the style <b>Heading 1</b>, or start a line with <code>#</code> and a space. | 文档的标题会显示在这里。为段落应用<b>标题 1</b>样式,或在行首输入 <code>#</code> 和一个空格。 |
| panel.variablesEmpty | Una variable es un hueco para un dato: escribe <code>{{cliente}}</code> en el documento, o selecciona un texto e insértala abajo. | A variable is a blank for a piece of data: type <code>{{client}}</code> in the document, or select some text and insert one below. | 变量是一项数据的空白处:在文档中输入 <code>{{client}}</code>,或选中一段文字并在下方插入一个变量。 |
| var.valueOf | Valor de {name} | Value of {name} | {name} 的值 |
| var.controlOf | {title} de {name} | {title} of {name} | {name} 的{title} |
| var.uses | {n} veces | {n} uses | {n} 处 |
| var.note | Rellenar cambia el documento; se deshace de una vez, y los valores se conservan. | Filling changes the document; it is undone in one step, and the values are kept. | 填写会更改文档;一步即可撤销,填写的值会被保留。 |
| var.namePlaceholder | nombre_de_la_variable | variable_name | 变量名称 |
| var.newHere | Variable nueva, donde está el cursor | New variable, at the cursor | 在光标处新建变量 |
| var.insertTitle | Pone la variable en el cursor, o en lugar del texto seleccionado | Puts the variable at the cursor, or in place of the selected text | 在光标处放置变量,或替换所选文字 |
| var.fillNone | Escribe valores para rellenar | Type values to fill | 输入要填写的值 |
| var.fillOneField | Rellenar 1 variable en el documento | Fill 1 variable in the document | 填写文档中的 1 个变量 |
| var.fillFields | Rellenar {n} variables en el documento | Fill {n} variables in the document | 填写文档中的 {n} 个变量 |
| var.fillOne | Rellenar solo esta (Enter) | Fill only this one (Enter) | 只填写这一个(Enter) |
| var.intro | Los datos que cambian en cada documento. Escribe un valor y se pone en todos los lugares donde aparece. | The data that changes in each document. Type a value and it goes in every place it appears. | 每份文档中变化的数据。输入一个值,它会出现在所有使用它的地方。 |
| var.other | Otros datos | Other data | 其他数据 |
| var.search | Buscar una variable | Find a variable | 查找变量 |
| var.blocks | Bloques | Blocks | 块 |
| var.blockText | Un texto dentro de un párrafo | Some text in a paragraph | 段落中的一段文字 |
| var.blockRow | Una fila de la tabla | A row of a table | 表格中的一行 |
| var.blockParagraphs | Los párrafos entre sus marcas | The paragraphs between its marks | 标记之间的段落 |
| var.blockInverted | se queda cuando el valor no está | kept when the value is not there | 没有值时保留 |
| var.blockUnset | Sin decidir | Not set | 未设置 |
| var.blockYes | Se queda | Kept | 保留 |
| var.blockNo | Se quita | Taken out | 删除 |
| var.blockList | Una vez por cada uno de los {n} de los datos | Once for each of the {n} in the data | 对数据中的 {n} 项各重复一次 |
| var.blockListOne | Una vez, por el único de los datos | Once, for the one in the data | 一次,对应数据中的一项 |
| var.blockHint | Para repetir un bloque, carga una lista con «Cargar datos…». | To repeat a block, load a list with “Load data…”. | 要重复一个块,请用“载入数据…”载入一个列表。 |
| var.noMatch | Ninguna variable tiene “{query}”. | No variable has “{query}”. | 没有包含“{query}”的变量。 |
| var.formats | Cómo se escribe | How it is written | 写法 |
| var.datePlaceholder | 12/10/2026 u hoy | 12/10/2026 or today | 2026-10-12 或 今天 |
| var.numberPlaceholder | 1250000 | 1250000 | 1250000 |
| var.load | Cargar datos… | Load data… | 载入数据… |
| var.loadTitle | Toma los valores de un archivo .json | Takes the values from a .json file | 从 .json 文件读取值 |
| var.badJson | El archivo no es un JSON válido. | The file is not valid JSON. | 该文件不是有效的 JSON。 |
| var.goTo | Ir a donde se usa | Go to where it is used | 转到使用位置 |
| var.value | Valor | Value | 值 |
| var.type | Tipo de dato | Data type | 数据类型 |
| var.case | Mayúsculas y minúsculas | Letter case | 大小写 |
| var.decimals | Decimales | Decimals | 小数位 |
| var.decimalsAuto | Decimales: los que traiga | Decimals: as given | 小数位:按原样 |
| var.currencyCode | Moneda: EUR, MXN… | Currency: EUR, MXN… | 货币:CNY、USD… |
| var.currencyTitle | El código de la moneda (EUR, MXN, USD), o cuántos decimales; vacío, con el signo de pesos | The code of the currency (EUR, MXN, USD), or how many decimals; empty, with a dollar sign | 货币代码(CNY、USD、EUR),或小数位数;留空则使用美元符号 |
| var.datePattern | Patrón: dd/MM/yyyy | Pattern: dd/MM/yyyy | 格式:yyyy-MM-dd |
| var.datePatternTitle | d, dd, dddd (el día de la semana), M, MM, MMM, MMMM, yy y yyyy se reemplazan; las demás palabras se quedan | d, dd, dddd (the day of the week), M, MM, MMM, MMMM, yy and yyyy are replaced; other words are kept | d、dd、dddd(星期几)、M、MM、MMM、MMMM、yy 和 yyyy 会被替换;其他文字保持不变 |
| var.notNumber | No es un número: se pondrá tal cual. | Not a number: it will be inserted as is. | 不是数字:将按原样插入。 |
| var.notDate | No es una fecha (12/10/2026, 2026-10-12 u hoy): se pondrá tal cual. | Not a date (12/10/2026, 2026-10-12 or today): it will be inserted as is. | 不是日期(2026-10-12、2026年10月12日 或 今天):将按原样插入。 |
| insert | Insertar | Insert | 插入 |
| bubble.fit | Al {n} % del ancho del texto | At {n}% of the text width | 为文字宽度的 {n}% |
| bubble.toVariable | Convierte la selección en la variable {{{name}}} | Turns the selection into the variable {{{name}}} | 将所选内容变为变量 {{{name}}} |
| bubble.toVariableNo | Selecciona un nombre corto, sin signos, para hacerlo variable | Select a short name, without symbols, to make it a variable | 选择一个不含符号的短名称,才能将其变为变量 |
| bubble.style | Estilo {name} | Style {name} | 样式 {name} |
| bubble.label | Acciones para la selección | Actions for the selection | 所选内容的操作 |
| bubble.delete | Eliminar | Delete | 删除 |
| bubble.copy | Copiar | Copy | 复制 |
| bubble.cut | Cortar | Cut | 剪切 |
| bubble.paste | Pegar | Paste | 粘贴 |
| bubble.pastePlain | Pegar sin formato | Paste as text | 粘贴为纯文本 |
| bubble.selectAll | Seleccionar todo | Select all | 全选 |
| bubble.deleteTitle | Quita la imagen | Removes the image | 删除图片 |
| bubble.upper | MAYÚS | CAPS | 大写 |
| bubble.upperTitle | El valor, en mayúsculas | The value, in capitals | 值,全部大写 |
| bubble.capitalTitle | El valor, con mayúscula en cada palabra | The value, with each word capitalized | 值,每个单词首字母大写 |
| bubble.date | Fecha | Date | 日期 |
| bubble.dateTitle | El valor es una fecha: 12 de octubre de 2026 | The value is a date: 12 de octubre de 2026 | 值是日期:2026年10月12日 |
| bubble.currency | Moneda | Currency | 货币 |
| bubble.currencyTitle | El valor es un importe: $1,234.50 | The value is an amount: $1,234.50 | 值是金额:¥1,234.50 |
| bubble.highlight | Resaltar | Highlight | 突出显示 |
| bubble.highlightTitle | Resalta en amarillo | Highlights in yellow | 用黄色突出显示 |
| bubble.bullets | • Lista | • List | • 列表 |
| bubble.numbers | 1. Lista | 1. List | 1. 列表 |
| bubble.tableTitle | Inserta una tabla de 3 × 3 | Inserts a 3 × 3 table | 插入 3 × 3 表格 |
| bubble.signatures | Firmas | Signatures | 签名 |
| bubble.signaturesTitle | Inserta las firmas de asesor y cliente, una al lado de otra | Inserts the adviser and client signatures, side by side | 并排插入顾问和客户的签名 |
| bubble.image | Imagen | Image | 图片 |
| bubble.imageTitle | Inserta una imagen, o varias en cuadrícula | Inserts one image, or several in a grid | 插入一张图片,或将多张排成网格 |
| bubble.variableTitle | Inserta una variable de plantilla | Inserts a template variable | 插入模板变量 |
| bubble.pageBreak | Salto de página | Page break | 分页符 |
| insert.sectionNextPage | Salto de sección: página siguiente | Section break: next page | 分节符:下一页 |
| insert.sectionContinuous | Salto de sección: continuo | Section break: continuous | 分节符:连续 |
| bubble.pageBreakTitle | Lo que sigue pasa a la página siguiente | What follows moves to the next page | 后面的内容移到下一页 |
| bubble.addRow | + Fila | + Row | + 行 |
| bubble.addRowTitle | Inserta una fila debajo | Inserts a row below | 在下方插入一行 |
| bubble.addColumn | + Columna | + Column | + 列 |
| bubble.addColumnTitle | Inserta una columna a la derecha | Inserts a column to the right | 在右侧插入一列 |
| bubble.delRow | − Fila | − Row | − 行 |
| bubble.delRowTitle | Elimina la fila | Deletes the row | 删除该行 |
| bubble.delColumn | − Columna | − Column | − 列 |
| bubble.delColumnTitle | Elimina la columna | Deletes the column | 删除该列 |
| bubble.delTable | Eliminar tabla | Delete table | 删除表格 |
| bubble.delTableTitle | Elimina la tabla completa | Deletes the whole table | 删除整个表格 |
| bubble.split | Dividir | Split | 拆分 |
| bubble.splitTitle | Divide la celda combinada | Splits the merged cell | 拆分合并的单元格 |
| bubble.merge | Combinar | Merge | 合并 |
| bubble.mergeTitle | Combina las celdas seleccionadas | Merges the selected cells | 合并所选单元格 |
| bubble.noBorders | Sin bordes | No borders | 无边框 |
| bubble.borders | Con bordes | Borders | 边框 |
| bubble.noBordersTitle | Oculta los bordes de toda la tabla | Hides the borders of the whole table | 隐藏整个表格的边框 |
| bubble.bordersTitle | Muestra los bordes de toda la tabla | Shows the borders of the whole table | 显示整个表格的边框 |
| bubble.shade | Sombrear | Shade | 底纹 |
| bubble.shadeTitle | Pone o quita el fondo de las celdas | Adds or removes the background of the cells | 添加或删除单元格的背景 |
| bubble.cells | Celdas | Cells | 单元格 |
| bubble.paragraph | Párrafo | Paragraph | 段落 |
| bubble.namePlaceholder | nombre | name | 名称 |
| bubble.name | Nombre de la variable | Variable name | 变量名称 |
| grid.one | 1 imagen | 1 image | 1 张图片 |
| grid.many | {n} imágenes | {n} images | {n} 张图片 |
| grid.note | Cuadrícula de {across} × {rows}. Arrastra una imagen para cambiarla de sitio. | Grid of {across} × {rows}. Drag an image to move it. | {across} × {rows} 网格。拖动图片可移动它。 |
| grid.empty | No queda ninguna imagen. | No images left. | 没有剩余的图片。 |
| grid.removeName | Quitar {name} | Remove {name} | 删除 {name} |
| grid.title | Insertar imágenes en cuadrícula | Insert images in a grid | 以网格插入图片 |
| grid.columns | Columnas | Columns | 列数 |
| grid.more | Añadir más… | Add more… | 添加更多… |
| grid.remove | Quitar | Remove | 删除 |
| app.openFailed | No se pudo abrir el archivo: {error} | The file could not be opened: {error} | 无法打开文件:{error} |
| app.saveFailed | No se pudo guardar: {error} | The document could not be saved: {error} | 无法保存文档:{error} |
| app.wordDocument | Documento de Word | Word document | Word 文档 |
| note.anonymous | Anónimo | Anonymous | 匿名 |
| note.word | Nota | Note | 批注 |
| panel.notes | Notas | Notes | 批注 |
| note.placeholder | Nota para el texto seleccionado | Note for the selected text | 对所选文字的批注 |
| note.add | Añadir nota | Add note | 添加批注 |
| note.addTitle | Pone la nota en el texto seleccionado, o en la palabra del cursor | Puts the note on the selected text, or on the word at the cursor | 将批注添加到所选文字,或光标处的词语 |
| note.empty | Una nota es un comentario sobre un trozo del texto: selecciónalo, escribe la nota arriba y pulsa <b>Añadir nota</b>. En Word se ve como un comentario. | A note is a comment on a stretch of the text: select it, type the note above and press <b>Add note</b>. Word shows it as a comment. | 批注是对一段文字的评论:选中文字,在上方输入批注,然后按<b>添加批注</b>。Word 会将其显示为批注。 |
| note.delete | Eliminar nota | Delete note | 删除批注 |
| note.deleteAll | Eliminar todas las notas | Delete all notes | 删除所有批注 |
| note.goTo | Ir al texto de la nota | Go to the text of the note | 转到批注的文字 |
| note.textOf | Texto de la nota | Text of the note | 批注内容 |
| note.author | Tu nombre | Your name | 你的姓名 |
| note.authorTitle | Con este nombre se firman las notas que añadas | The notes you add are signed with this name | 你添加的批注会署上这个名字 |
| bubble.noteTitle | Añade una nota al texto seleccionado | Adds a note to the selected text | 为所选文字添加批注 |
| bubble.notePlaceholder | Escribe la nota | Type the note | 输入批注 |
| note.color | Color de la nota | Note color | 批注颜色 |
| view.notes | Notas al margen | Notes in the margin | 在页边显示批注 |
| panel.history | Versiones | Versions | 版本 |
| history.empty | Aún no hay versiones de este documento. Guarda una para poder volver a ella o ver qué cambió desde entonces. | This document has no versions yet. Save one to be able to go back to it, or to see what changed since. | 此文档还没有版本。保存一个版本,以便以后返回,或查看之后的更改。 |
| history.none | Las versiones del documento aparecen aquí cuando la aplicación las guarda. | The versions of the document appear here when the application keeps them. | 当应用程序保存版本时,文档的版本会显示在这里。 |
| history.label | Nombre de la versión (opcional) | Name of the version (optional) | 版本名称(可选) |
| history.save | Guardar versión | Save version | 保存版本 |
| history.saveTitle | Guarda el documento tal como está ahora como una versión a la que volver | Keeps the document as it is now as a version to go back to | 将文档的当前状态保存为可返回的版本 |
| history.untitled | Versión sin nombre | Unnamed version | 未命名版本 |
| history.loading | Cargando las versiones… | Loading the versions… | 正在载入版本… |
| history.failed | No se pudieron leer las versiones: {error} | The versions could not be read: {error} | 无法读取版本:{error} |
| history.openFailed | No se pudo abrir esa versión: {error} | That version could not be opened: {error} | 无法打开该版本:{error} |
| history.saveFailed | No se pudo guardar la versión: {error} | The version could not be saved: {error} | 无法保存版本:{error} |
| history.compare | Ver cambios | See changes | 查看更改 |
| history.compareTitle | Muestra qué cambió desde esta versión hasta el documento actual | Shows what changed from this version to the document as it is now | 显示从此版本到当前文档的更改 |
| history.restore | Restaurar | Restore | 还原 |
| history.restoreTitle | Vuelve el documento a esta versión. Se puede deshacer | Takes the document back to this version. It can be undone | 将文档恢复到此版本。可以撤销 |
| history.restored | Versión restaurada. Deshacer ({undo}) lo deja como estaba. | Version restored. Undo ({undo}) leaves it as it was. | 已还原版本。撤销({undo})可恢复原样。 |
| history.current | El documento actual | The current document | 当前文档 |
| compare.title | Cambios | Changes | 更改 |
| compare.from | Desde | From | 从 |
| compare.to | Hasta | To | 到 |
| compare.changes | Con los cambios marcados | With the changes marked | 标记更改 |
| compare.plain | Sin marcar | Unmarked | 不标记 |
| compare.count | {n} cambios | {n} changes | {n} 处更改 |
| compare.one | 1 cambio | 1 change | 1 处更改 |
| compare.none | Sin cambios en el texto | No changes in the text | 文字没有更改 |
| compare.elsewhere | {n} en encabezados, pies, notas o cuadros de texto | {n} in headers, footers, notes or text boxes | 页眉、页脚、注释或文本框中有 {n} 处 |
| compare.notes | {n} en notas | {n} in notes | 批注中有 {n} 处 |
| compare.prev | Cambio anterior | Previous change | 上一处更改 |
| compare.next | Cambio siguiente | Next change | 下一处更改 |
| compare.close | Cerrar | Close | 关闭 |
| compare.restore | Restaurar esta versión | Restore this version | 还原此版本 |
| compare.legend | Tachado en rojo: lo que se quitó. Subrayado en verde: lo que se añadió. | Struck through in red: what was taken out. Underlined in green: what was put in. | 红色删除线:被删除的内容。绿色下划线:被添加的内容。 |
| assistant.word | IA | AI | AI |
| assistant.off | Dejar que un asistente de IA lea y cambie este documento (servidor MCP en este equipo) | Let an AI assistant read and change this document (MCP server on this machine) | 允许 AI 助手读取和更改此文档(本机上的 MCP 服务器) |
| assistant.connecting | Buscando el servidor MCP de este equipo… Clic para dejar de buscar | Looking for the MCP server on this machine… Click to stop | 正在查找本机上的 MCP 服务器… 单击停止 |
| assistant.on | Un asistente de IA puede leer y cambiar este documento. Clic para desconectarlo | An AI assistant can read and change this document. Click to disconnect it | AI 助手可以读取和更改此文档。单击断开连接 |
| letterhead.set | Membrete… | Letterhead… | 信头… |
| letterhead.change | Cambiar el membrete… | Change the letterhead… | 更改信头… |
| letterhead.remove | Quitar el membrete | Remove the letterhead | 删除信头 |
| letterhead.save | Extraer el membrete | Extract the letterhead | 提取信头 |
| letterhead.name | membrete | letterhead | 信头 |
| letterhead.fit | Ajustar los márgenes al membrete | Fit the margins to the letterhead | 根据信头调整页边距 |
| letterhead.failed | Ese archivo no sirve de membrete: tiene que ser una imagen PNG o JPG. | That file cannot be a letterhead: it has to be a PNG or JPG picture. | 该文件不能用作信头:必须是 PNG 或 JPG 图片。 |
| collab.word | Compartir | Share | 共享 |
| collab.someone | Alguien | Someone | 某人 |
| collab.off | Trabajar en este documento con otras personas a la vez | Work on this document with other people at the same time | 与其他人同时编辑此文档 |
| collab.connecting | Conectando con el servidor de colaboración… | Connecting to the collaboration server… | 正在连接协作服务器… |
| collab.on | Documento compartido. Clic para ver el enlace y quién está | Shared document. Click to see the link and who is here | 共享文档。单击查看链接和在线的人 |
| collab.offline | Sin conexión con el servidor. Lo que escribas se envía al volver | No connection to the server. What you type is sent when it is back | 未连接到服务器。恢复连接后会发送你输入的内容 |
| collab.link | Enlace para invitar | Link to invite | 邀请链接 |
| collab.copy | Copiar enlace | Copy link | 复制链接 |
| collab.copied | Copiado | Copied | 已复制 |
| collab.leave | Dejar de compartir aquí | Stop sharing here | 在此停止共享 |
| collab.name | Tu nombre | Your name | 你的姓名 |
| collab.you | tú | you | 你 |
| collab.alone | Nadie más por ahora | Nobody else for now | 目前没有其他人 |
| collab.people | Personas en el documento | People on the document | 文档中的人 |
| collab.failed | No se pudo compartir el documento: {error} | The document could not be shared: {error} | 无法共享文档:{error} |
| collab.noServer | No hay servidor de colaboración en {url}. | There is no collaboration server at {url}. | {url} 上没有协作服务器。 |
| collab.askToken | Palabra que pide el servidor para compartir | Word the server asks for to share | 服务器要求的共享口令 |
| collab.gone | Este documento compartido ya no existe en el servidor, o no tienes permiso para editarlo. | This shared document is no longer on the server, or you may not edit it. | 此共享文档已不在服务器上,或者你无权编辑。 |
| collab.removed | Ya no tienes acceso a este documento compartido. | You no longer have access to this shared document. | 你已无权访问此共享文档。 |
| collab.outdated | Este editor y el servidor de colaboración son de versiones distintas: hay que actualizar uno de los dos. | This editor and the collaboration server are of different versions: one of them needs updating. | 此编辑器与协作服务器的版本不同:需要更新其中一个。 |
| collab.leaveToOpen | Abrir otro archivo deja de compartir este con los demás. ¿Continuar? | Opening another file stops sharing this one with the others. Continue? | 打开另一个文件会停止与他人共享此文件。是否继续? |
| insert.image | Imagen… | Image… | 图片… |
| insert.variable | Variable… | Variable… | 变量… |
| insert.note | Nota… | Note… | 批注… |
| insert.footnote | Nota al pie | Footnote | 脚注 |
| insert.endnote | Nota al final | Endnote | 尾注 |
| insert.textBox | Cuadro de texto | Text box | 文本框 |
| review | Revisar | Review | 审阅 |
| review.tools | Control de cambios: marcar lo que se escribe y se borra, y aceptarlo o rechazarlo | Track changes: mark what is typed and deleted, and accept or reject it | 修订:标记输入和删除的内容,并接受或拒绝 |
| review.track | Controlar cambios | Track changes | 修订 |
| review.accept | Aceptar el cambio | Accept change | 接受修订 |
| review.reject | Rechazar el cambio | Reject change | 拒绝修订 |
| review.next | Cambio siguiente | Next change | 下一处修订 |
| review.prev | Cambio anterior | Previous change | 上一处修订 |
| review.acceptAll | Aceptar todos los cambios | Accept all changes | 接受所有修订 |
| review.rejectAll | Rechazar todos los cambios | Reject all changes | 拒绝所有修订 |
| review.showAll | Mostrar los cambios | Show the changes | 显示修订 |
| review.showAccepted | Ver como quedaría, con todos aceptados | See it with all changes accepted | 查看接受所有修订后的样子 |
| review.showOriginal | Ver el original, sin los cambios | See the original, without the changes | 查看原始状态,不含修订 |
| panel.changes | Cambios | Changes | 修订 |
| changes.empty | No hay cambios marcados. Con <b>Controlar cambios</b> activado, lo que se escribe queda subrayado y lo que se borra, tachado, hasta aceptarlo o rechazarlo. En Word se ven como control de cambios. | There are no tracked changes. With <b>Track changes</b> on, what is typed is underlined and what is deleted struck through, until it is accepted or rejected. Word shows them as tracked changes. | 没有修订。开启<b>修订</b>后,输入的内容会加下划线,删除的内容会加删除线,直到被接受或拒绝。Word 会将其显示为修订。 |
| changes.inserted | Añadió | Added | 添加 |
| changes.deleted | Eliminó | Deleted | 删除 |
| changes.paragraph | un salto de párrafo | a paragraph break | 一个段落标记 |
| changes.accept | Aceptar | Accept | 接受 |
| changes.reject | Rechazar | Reject | 拒绝 |
| changes.goTo | Ir al cambio | Go to the change | 转到该修订 |
| changes.movedFrom | Movió a otro lugar | Moved away | 已移出 |
| changes.movedTo | Movió aquí | Moved here | 已移入 |
| changes.by | De | By | 作者 |
| changes.everyone | Todos | Everyone | 所有人 |
| changes.acceptBy | Aceptar los de {author} | Accept all by {author} | 接受 {author} 的所有修订 |
| changes.rejectBy | Rechazar los de {author} | Reject all by {author} | 拒绝 {author} 的所有修订 |
| changes.formatted | Cambió el formato de | Formatted | 已设置格式 |
| changes.rowInserted | Añadió una fila | Added a row | 添加了一行 |
| changes.rowDeleted | Eliminó una fila | Deleted a row | 删除了一行 |
| changes.list | la lista | list | 列表 |
| changes.spacing | el espaciado | spacing | 间距 |
| changes.indent | la sangría | indent | 缩进 |
| changes.layout | cómo se reparte en las páginas | page flow | 分页 |
| insert.pageNumber | Número de página… | Page number… | 页码… |
| wrap.inline | En línea | In line | 嵌入型 |
| wrap.inlineTitle | La imagen va en la línea, como una letra más | The picture goes in the line, like one more letter | 图片位于行中,就像一个字 |
| wrap.behind | Detrás del texto | Behind the text | 衬于文字下方 |
| wrap.behindTitle | La imagen va debajo del texto, que pasa por encima | The picture goes under the text, which runs over it | 图片位于文字下方,文字覆盖在上面 |
| page.firstDifferent | Primera página distinta | Different first page | 首页不同 |
| page.ownHeaders | Encabezado y pie propios de esta sección | Own header and footer for this section | 本节使用独立的页眉和页脚 |
| wrap.square | Texto alrededor | Wrap text | 四周型 |
| wrap.squareTitle | El texto rodea la imagen | The text goes round the picture | 文字环绕在图片四周 |
| wrap.topBottom | Arriba y abajo | Top and bottom | 上下型 |
| wrap.topBottomTitle | El texto queda encima y debajo de la imagen, no a los lados | The text stays above and below the picture, not beside it | 文字位于图片上方和下方,不在旁边 |
| wrap.none | Sobre el texto | Over the text | 浮于文字上方 |
| wrap.noneTitle | La imagen va encima del texto, que no se aparta | The picture goes over the text, which does not move | 图片位于文字上方,文字不移动 |
| insert.link | Enlace… | Link… | 链接… |
| link.word | Enlace | Link | 链接 |
| spell.word | Ortografía | Spelling | 拼写 |
| spell.looking | Buscando sugerencias… | Looking for suggestions… | 正在查找建议… |
| spell.none | Sin sugerencias | No suggestions | 没有建议 |
| spell.replace | Cambiar por «{word}» | Change to “{word}” | 改为“{word}” |
| spell.ignore | Omitir | Ignore | 忽略 |
| spell.ignoreTitle | Dejar esta palabra sin marcar en el documento | Leave this word unmarked in the document | 在此文档中不再标记这个词 |
| spell.add | Añadir al diccionario | Add to dictionary | 添加到词典 |
| spell.addTitle | Tomar esta palabra como bien escrita de ahora en adelante | Take this word as spelled right from now on | 从现在起将这个词视为拼写正确 |
| link.title | Convierte el texto en un enlace ({key}K) | Turns the text into a link ({key}K) | 将文字变为链接({key}K) |
| link.address | Dirección del enlace | Address of the link | 链接地址 |
| link.placeholder | Pega o escribe una dirección: ejemplo.com | Paste or type an address: example.com | 粘贴或输入地址:example.com |
| link.apply | Enlazar | Link | 链接 |
| link.save | Guardar | Save | 保存 |
| link.open | Abrir | Open | 打开 |
| link.openTitle | Abre el enlace en otra pestaña | Opens the link in another tab | 在新标签页中打开链接 |
| link.edit | Cambiar | Change | 更改 |
| link.editTitle | Cambia la dirección del enlace | Changes the address of the link | 更改链接地址 |
| link.remove | Quitar enlace | Remove link | 删除链接 |
| link.removeTitle | Quita el enlace y deja el texto | Removes the link and keeps the text | 删除链接并保留文字 |
| link.follow | {key} + clic para abrir | {key} + click to open | 按住 {key} 并单击以打开 |
| toolbar.tableOff | pon el cursor dentro de una tabla | put the cursor inside a table | 将光标放在表格中 |
| toolbar.insertTools | Insertar tabla, imagen, enlace, firmas, variable, nota o índice | Insert a table, picture, link, signatures, variable, note or table of contents | 插入表格、图片、链接、签名、变量、批注或目录 |
| toolbar.align | Alineación | Alignment | 对齐方式 |
| toolbar.tableTools | Tabla: filas, columnas y celdas | Table: rows, columns and cells | 表格:行、列和单元格 |
| toolbar.pageTools | Encabezado, pie y número de página | Header, footer and page number | 页眉、页脚和页码 |
| toolbar.columns | Columnas: el texto en una, dos o tres | Columns: the text in one, two or three | 分栏:文字分为一栏、两栏或三栏 |
| toolbar.unsaved | cambios sin guardar | unsaved changes | 有未保存的更改 |
| toc.title | Índice | Contents | 目录 |
| toc.insert | Índice | Table of contents | 目录 |
| toc.insertTitle | Inserta un índice con los títulos del documento y la página de cada uno | Inserts a table of contents with the headings of the document and the page of each | 插入包含文档各标题及其页码的目录 |
| toc.insertHere | Insertar índice en el cursor | Insert table of contents at the cursor | 在光标处插入目录 |
| toc.update | Actualizar índice | Update table of contents | 更新目录 |
| toc.updated | Índice al día | Table of contents is up to date | 目录已是最新 |
| toc.empty | Aún no hay títulos: da a un párrafo el estilo Título 1. | No headings yet: give a paragraph the style Heading 1. | 还没有标题:为段落应用“标题 1”样式。 |
| toc.note | El índice se actualiza solo al guardar, exportar o imprimir. | The table of contents is brought up to date on saving, exporting or printing. | 保存、导出或打印时会更新目录。 |
拼写检查
浏览器只检查它自己编辑的文字的拼写,而编辑器的文字不由浏览器编辑:所以编辑器自己检查。拼错的词会按文字所用的语言加上红色波浪线,建议显示在选区旁的工具条中。
import { DocsEditor, createSpellChecker } from '@rebodocs/react';
// Once for the page: each dictionary is loaded the first time a text in its language is checked.
const spellcheck = createSpellChecker({
dictionaries: {
es: { aff: '/dictionaries/es.aff', dic: '/dictionaries/es.dic' },
en: { aff: '/dictionaries/en.aff', dic: '/dictionaries/en.dic' },
},
});
<DocsEditor docx={file} language="es-MX" spellcheck={spellcheck} />- 词典由你提供。使用 Hunspell 词典(LibreOffice 和 Firefox 也用它):每种语言一个
.aff和一个.dic,可以给出地址,也可以给出返回其文本的函数。npm 上的 wooorm/dictionaries 是一个来源,各有自己的许可证:西班牙语为 GPL、LGPL 或 MPL,英语为 MIT 和 BSD。Rebodocs 本身不带任何词典。 - 不占用页面线程。nspell 在编辑器用字符串创建的 worker 中读取词典,因此打包工具不需要查找文件;设置了内容安全策略的页面需要允许
worker-src blob:。西班牙语词典大约需要半秒准备,只需一次。 - 按文字的语言检查:取自
language、文件,或编辑器底部选择的语言:es同样适用于es-MX。更改语言会重新检查;没有词典的语言不检查。 - 检查范围:可视区域附近页面中的词,在停止输入四分之一秒后检查;正在输入的词要等输完才检查。单个字母、全大写的词、与数字相连的词、变量、网址、电子邮件、中日文字符以及修订中已删除的文字不检查。
- 建议:在带波浪线的词上点右键、轻点它,或在光标位于其中时轻按 ⌘(Ctrl)。选择建议会像任何编辑一样替换该词,可用 ⌘Z 撤销,开启修订时也会记录。忽略会在本文档中不再标记该词;添加到词典会把它加入词典,直到页面关闭。
- 自己的检查器(例如运行在你的服务器上)是一个带有
check(words, language)和suggest(word, language)的对象,二者可以直接返回结果或返回 promise;如果支持添加新词,还可以有add。不检查语法。
注意事项
- 在 locale 另行指定之前,界面使用浏览器语言中它支持的第一种,否则为英语。界面最初用西班牙语编写;英文文本是翻译的,正在等待母语人士审阅,中文文本也是如此。
- 整个页面只有一种界面语言:同一页面上的两个编辑器使用同一种语言,在任一编辑器的菜单中选择语言都会重新构建两者。文档及其历史记录保持不变。
- 标签会对应到它所属的语言:en-US 对应英语;添加法语后 fr-CA 对应法语;添加繁体中文后 zh-TW 对应繁体中文。未添加的语言显示为英语。
- 没有提供值的 {name} 会原样保留,包括花括号。
- 语言添加后无法移除;再次调用 addLocale 会修改它的文本。
- 不支持从右向左书写的语言,如阿拉伯语和希伯来语:界面和文档文字都从左向右排版。中文按行从左向右排版,与 Word 的默认方式相同;不支持竖排。