Rebodocs文档
开始3
Rebodocs 是什么
快速上手
可运行的演示
放进你的应用8
React 组件
Headless:你自己的界面
一套完整的界面
不用框架
只读:查看器
样式与 Tailwind
手机与触屏
无障碍
文档8
模板与变量
在服务器上:DOCX 与 PDF
S3 存储桶中的文档
信头
版本
修订
字体
语言
协作2
实时协作
AI 助手(MCP)
参考5
软件包
组件与 Hooks
Editor API
工作原理
现状与路线图
↑↓ 移动↵ 打开Esc 关闭26 个页面

文档 语言

语言

界面自带西班牙语和英语,并为需要的应用提供简体中文和繁体中文。用户看到的每段文字都通过键查找,共 653 个,因此添加一种语言只需一个翻译文件,无需改动编辑器。

<DocsEditor locale="en" />   // left out: the browser's language, or English

locale 接受代码或浏览器标签('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. 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. 2

    翻译

    它是普通的 JSON,每项是一个键和一段文本。花括号中的内容保持不变:有 70 段文本包含由编辑器填入的 {name}。

    {
      "locale.name": "Français",
      "menu.save": "Enregistrer",
      "status.page": "Page {page} sur {pages}"
    }
  3. 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

自己的界面

基于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} 由编辑器填入。

653 段文本
键EspañolEnglish简体中文
locale.nameEspañolEnglish简体中文
languageIdiomaLanguage语言
area.headerEncabezadoHeader页眉
area.firstHeaderEncabezado de la primera páginaFirst page header首页页眉
area.firstFooterPie de la primera páginaFirst page footer首页页脚
area.footerPie de páginaFooter页脚
area.sectionSección {n}Section {n}第 {n} 节
area.footnoteNota al pieFootnote脚注
area.endnoteNota al finalEndnote尾注
area.textboxCuadro de textoText box文本框
page.wordPáginaPage页
page.ofdeof/
style.normalNormalNormal正文
style.titleTítuloTitle标题
style.subtitleSubtítuloSubtitle副标题
style.heading1Título 1Heading 1标题 1
style.heading2Título 2Heading 2标题 2
style.heading3Título 3Heading 3标题 3
sign.adviserASESORADVISER顾问
sign.clientCLIENTECLIENT客户
sign.nameNOMBRE COMPLETOFULL NAME姓名
mark.boldNegritaBold加粗
mark.italicCursivaItalic倾斜
mark.underlineSubrayadoUnderline下划线
mark.strikeTachadoStrikethrough删除线
a11y.documentDocumentoDocument文档
a11y.endOfParagraphfin de párrafoend of paragraph段落结束
a11y.blanken blancoblank空白
a11y.spaceespaciospace空格
a11y.tabtabuladortab制表符
a11y.lineBreaksalto de línealine break换行符
a11y.pageBreaksalto de páginapage break分页符
a11y.objectobjetoobject对象
a11y.footnoteRefNota al pie {n}Footnote {n}脚注 {n}
a11y.endnoteRefNota al final {n}Endnote {n}尾注 {n}
a11y.pictureImagen: {alt}Picture: {alt}图片:{alt}
a11y.pictureNoAltImagen sin descripciónPicture without a description没有说明的图片
a11y.textBoxCuadro de textoText box文本框
status.languageIdioma del texto: para la ortografía, la voz de un lector de pantalla y cómo se escriben fechas y númerosLanguage of the text: for spelling, the voice of a screen reader, and how dates and numbers are written文本语言:用于拼写检查、屏幕阅读器的语音,以及日期和数字的写法
alt.wordDescripciónDescription说明
alt.titleQué muestra la imagen, para quien no la ve: lo que dice un lector de pantallaWhat the picture shows, for whoever cannot see it: what a screen reader says图片显示的内容,供看不到图片的人使用:屏幕阅读器会朗读它
alt.placeholderQué muestra la imagenWhat 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.allSelectedTodo seleccionadoAll selected已全选
a11y.deleted{text}, borrado{text}, deleted{text},已删除
a11y.pagePágina {page}Page {page}第 {page} 页
a11y.cellTabla, fila {row}, columna {column}Table, row {row}, column {column}表格,第 {row} 行,第 {column} 列
a11y.leftTableFuera de la tablaOut of the table已离开表格
a11y.bulletListLista con viñetasBulleted list项目符号列表
a11y.numberListLista numeradaNumbered list编号列表
a11y.levelnivel {level}level {level}第 {level} 级
a11y.linkEnlace a {href}Link to {href}链接到 {href}
a11y.insertedInsertado por {author}Inserted by {author}由 {author} 插入
a11y.removedEliminado por {author}Deleted by {author}由 {author} 删除
a11y.formattedFormato cambiado por {author}Formatting changed by {author}由 {author} 更改格式
a11y.notedCon notaWith a note有批注
a11y.onSe activó {name}{name}, on{name},开
a11y.offSe desactivó {name}{name}, off{name},关
a11y.undoneDeshechoUndone已撤销
a11y.redoneRehechoRedone已恢复
a11y.nothingToUndoNada que deshacerNothing to undo没有可撤销的操作
a11y.nothingToRedoNada que rehacerNothing to redo没有可恢复的操作
a11y.pastedPegadoPasted已粘贴
a11y.bodyCuerpo del documentoBody of the document文档正文
a11y.hintAlt+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.statusBarBarra de estadoStatus bar状态栏
a11y.panelPanel lateralSide panel侧边栏
a11y.readerOnModo lector de pantalla activadoScreen reader mode on屏幕阅读器模式已开启
a11y.readerOffModo lector de pantalla desactivadoScreen reader mode off屏幕阅读器模式已关闭
a11y.rulerReglaRuler标尺
a11y.cm{value} cm{value} cm{value} 厘米
a11y.tabKindTipo de tabulación: {kind}. Enter: cambiarlo. Insert: poner una en el cursorTab 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.findBuscar y reemplazarFind and replace查找和替换
a11y.bubbleHintTab: ir a la barraTab: go to the barTab:转到工具栏
slash.labelComandosCommands命令
slash.hintEscribe para filtrar; flechas para elegir, Intro para insertar, Escape para dejarloType to filter; arrows to choose, Enter to insert, Escape to leave it输入以筛选;方向键选择,Enter 插入,Esc 退出
slash.noneSin resultadosNo results没有结果
slash.textTextoText文本
slash.insertInsertarInsert插入
slash.templatePlantillaTemplate模板
slash.moreMásMore更多
form.outsideSolo se pueden cambiar las zonas marcadasOnly the marked areas can be changed只能更改标记的区域
form.zoneZona editableEditable area可编辑区域
form.makeEditableEditable可编辑
form.makeTitleSolo esto se podrá cambiar cuando se restrinja la ediciónOnly this can be changed once editing is restricted限制编辑后,只有这里可以更改
form.makeMenuMarcar la selección como editableMark the selection as editable将所选内容标记为可编辑
form.removeQuitar zona editableRemove editable area删除可编辑区域
form.removeShortQuitarRemove删除
form.restrictRestringir edición a las zonas editablesRestrict editing to the editable areas仅允许编辑可编辑区域
form.fieldTitleUn hueco para llenar cuando se restrinja la ediciónA blank to fill in once editing is restricted限制编辑后需要填写的空白处
suggest.labelVariablesVariables变量
suggest.inDocumentYa está en el documentoAlready in the document文档中已有
suggest.examplePor ejemplo: {value}For example: {value}例如:{value}
suggest.newVariable nuevaNew variable新变量
suggest.typeEscribe el nombre de la variableType the name of the variable输入变量名称
slash.normalTitleTexto de párrafo, sin títuloParagraph text, not a heading段落正文,不是标题
slash.headingTitleTítulo de nivel {n}Heading of level {n}{n} 级标题
slash.bulletsTitleCada párrafo con una viñetaEach paragraph with a bullet每个段落带项目符号
slash.numbersTitleCada párrafo con su número: 1, 2, 3Each paragraph with its number: 1, 2, 3每个段落带编号:1、2、3
slash.textBoxTitleUn cuadro con texto en la páginaA box with text on the page页面上的一个文本框
slash.footnoteTitleUna nota numerada al pie de la páginaA numbered note at the foot of the page页面底部的编号注释
slash.noteTitleUna nota de revisión sobre la palabra anteriorA review note on the word before对前一个词的审阅批注
grid.earlierMover {name} antesMove {name} earlier将 {name} 前移
grid.laterMover {name} despuésMove {name} later将 {name} 后移
grid.place{name}, posición {n} de {total}{name}, position {n} of {total}{name},第 {n} 个,共 {total} 个
color.nonesin colorno color无颜色
color.blacknegroblack黑色
color.whiteblancowhite白色
color.graygrisgray灰色
color.redrojored红色
color.orangenaranjaorange橙色
color.browncafébrown棕色
color.yellowamarilloyellow黄色
color.oliveverde olivoolive橄榄色
color.golddoradogold金色
color.limeverde limónlime酸橙色
color.skycelestesky blue天蓝色
color.greenverdegreen绿色
color.cyanciancyan青色
color.blueazulblue蓝色
color.purplemoradopurple紫色
color.magentamagentamagenta洋红色
color.pinkrosapink粉色
color.dark{name} oscurodark {name}深{name}
color.light{name} clarolight {name}浅{name}
color.current{name}: {color}{name}: {color}{name}:{color}
mark.bold.letterNBB
mark.italic.letterKII
mark.underline.letterSUU
mark.strike.letterTSS
toolbar.labelFormatoFormatting格式
pageNumber.formatFormatoFormat格式
endnotes.titleNotas al finalEndnotes尾注
endnotes.inSectionsAl final de cada secciónAt the end of each section在每节末尾
endnotes.restartEmpezar de nuevo en esta secciónStart again in this section在本节重新编号
endnotes.formatNumeradas {example}Numbered {example}编号 {example}
toolbar.findBuscar y reemplazarFind and replace查找和替换
toolbar.moreMás herramientasMore tools更多工具
toolbar.undoDeshacerUndo撤销
toolbar.redoRehacerRedo恢复
table.cells{columns} por {rows}{columns} by {rows}{columns} × {rows}
table.column1 columna1 column1 列
table.columns{n} columnas{n} columns{n} 列
table.row1 fila1 row1 行
table.rows{n} filas{n} rows{n} 行
menu.titleMenú del documentoDocument menu文档菜单
toolbar.panelPanel: esquema, variables, notas y cambiosPanel: outline, variables, notes and changes侧边栏:大纲、变量、批注和修订
toolbar.openAbrir un documentoOpen a document打开文档
toolbar.downloadDescargar como .docxDownload as .docx下载为 .docx
toolbar.styleEstilo de párrafoParagraph style段落样式
toolbar.fontFuenteFont字体
toolbar.fontSizeTamaño de fuenteFont size字号
toolbar.colorColor del textoText color字体颜色
toolbar.highlightColor de resaltadoHighlight color突出显示颜色
toolbar.noHighlightSin resaltadoNo highlight无突出显示
align.leftAlinear a la izquierdaAlign left左对齐
align.centerCentrarCenter居中
align.rightAlinear a la derechaAlign right右对齐
align.justifyJustificarJustify两端对齐
spacing.titleInterlineado, espaciado y paginaciónLine spacing, paragraph spacing and pagination行距、段落间距和分页
spacing.lineInterlineadoLine spacing行距
spacing.beforeEspacio antes del párrafoSpace before paragraph段前间距
spacing.afterEspacio después del párrafoSpace after paragraph段后间距
spacing.paginationPaginaciónPagination分页
spacing.widowsControl de viudas y huérfanasWidow and orphan control孤行控制
spacing.keepNextConservar con el siguienteKeep with next与下段同页
spacing.keepLinesConservar líneas juntasKeep lines together段中不分页
spacing.breakBeforeSalto de página antesPage break before段前分页
indent.lessReducir sangríaDecrease indent减少缩进量
indent.moreAumentar sangríaIncrease indent增加缩进量
indent.dialogSangrías…Indents…缩进…
indent.titleSangrías del párrafoParagraph indents段落缩进
indent.leftIzquierdaLeft左侧
indent.rightDerechaRight右侧
indent.specialEspecialSpecial特殊
indent.noneNingunaNone无
indent.firstLinePrimera líneaFirst line首行缩进
indent.hangingFrancesaHanging悬挂缩进
indent.byEnBy缩进值
table.insertInsertar tablaInsert table插入表格
table.signaturesInsertar firmasInsert signatures插入签名
table.mergeCombinar celdasMerge cells合并单元格
table.splitDividir celdaSplit cell拆分单元格
table.rowAboveInsertar fila encimaInsert row above在上方插入行
table.rowBelowInsertar fila debajoInsert row below在下方插入行
table.columnLeftInsertar columna a la izquierdaInsert column to the left在左侧插入列
table.columnRightInsertar columna a la derechaInsert column to the right在右侧插入列
table.deleteRowEliminar filaDelete row删除行
table.deleteColumnEliminar columnaDelete column删除列
table.deleteTableEliminar tablaDelete table删除表格
table.rowHeightAlto de filaRow height行高
table.rowAutoAutoAuto自动
table.rowExactExactoExact固定值
table.hideBordersOcultar los bordes de la tablaHide the table borders隐藏表格边框
table.showBordersMostrar los bordes de la tablaShow the table borders显示表格边框
table.cellBordersBordes de la celdaCell borders单元格边框
table.shadingSombreadoShading底纹
table.noShadingSin sombreadoNo shading无底纹
table.headerRowRepetir como fila de encabezadoRepeat as header row重复标题行
table.alignTexto en la celdaText in the cell单元格中的文字
table.alignTopArribaTop顶端
table.alignCenterAl centroMiddle居中
table.alignBottomAbajoBottom底端
table.directionDirección del textoText direction文字方向
table.directionLevelHorizontalHorizontal水平
table.directionUpDe abajo arribaBottom to top从下到上
table.directionDownDe arriba abajoTop to bottom从上到下
table.lineStyleLínea de los bordesBorder line边框线
table.lineSingleContinuaSolid实线
table.lineDoubleDobleDouble双线
table.lineDashedDiscontinuaDashed虚线
table.lineDottedPunteadaDotted点线
columns.titleColumnasColumns分栏
columns.oneUnaOne一栏
columns.twoDosTwo两栏
columns.threeTresThree三栏
columns.leftUna estrecha a la izquierdaA narrow one on the left左侧一窄栏
columns.rightUna estrecha a la derechaA narrow one on the right右侧一窄栏
columns.separatorLínea entre columnasLine between columns分隔线
columns.breakSalto de columnaColumn break分栏符
columns.forSectionPara la sección donde está el cursorFor the section the cursor is in应用于光标所在的节
columns.forSelectionPara lo seleccionado, en una sección propiaFor the selection, as a section of its own应用于所选内容,作为单独的一节
toolbar.imageInsertar imagen (varias a la vez van en cuadrícula)Insert image (several at once go in a grid)插入图片(一次插入多张时排成网格)
toolbar.pageEncabezado, pie de página y saltosHeader, footer and breaks页眉、页脚和分隔符
toolbar.editHeaderEditar el encabezadoEdit the header编辑页眉
toolbar.editFooterEditar el pie de páginaEdit the footer编辑页脚
toolbar.pageBreakInsertar salto de páginaInsert page break插入分页符
pageNumber.titleNúmero de páginaPage number页码
pageNumber.noneNingunoNone无
pageNumber.noneTitleSin número de páginaNo page number不显示页码
pageNumber.inHeaderEn el encabezadoIn the header在页眉中
pageNumber.footerPieFooter页脚
pageNumber.inFooterEn el pie de páginaIn the footer在页脚中
pageNumber.positionPosiciónPosition位置
pageNumber.leftA la izquierdaLeft左侧
pageNumber.centerAl centroCenter居中
pageNumber.rightA la derechaRight右侧
list.bulletLista con viñetasBulleted list项目符号列表
list.numberLista numeradaNumbered list编号列表
focus.modeModo concentraciónFocus mode专注模式
focus.enterModo concentración ({keys})Focus mode ({keys})专注模式({keys})
focus.exitSalirLeave退出
list.bulletStylesFormatos de viñetaBullet styles项目符号样式
list.numberStylesFormatos de numeraciónNumbering styles编号样式
list.bulletsOfLevelViñetas del nivelBullets of this level本级项目符号
list.numbersOfLevelNúmeros del nivelNumbers of this level本级编号
list.styleOfFormato {sample}Style {sample}样式 {sample}
list.downBajar un nivel (sublista)Down a level (sublist)降一级(子列表)
list.upSubir un nivelUp a level升一级
list.restartReiniciar en 1 desde aquíRestart at 1 here从 1 重新开始编号
list.continueContinuar la numeración anteriorContinue the previous numbering继续前一列表的编号
list.hintTab 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.wordTablaTable表格
status.pagePágina {page} de {pages}Page {page} of {pages}第 {page} 页,共 {pages} 页
status.wordpalabraword字
status.wordspalabraswords字
status.charcaráctercharacter个字符
status.charscaracterescharacters个字符
status.of{n} de {total}{n} of {total}{n}/{total}
view.flowTexto al ancho de la ventana, sin páginasText as wide as the window, without pages文字与窗口同宽,不分页
view.columnUna páginaOne page单页
view.spreadDos páginasTwo pages双页
view.gridCuadrícula de páginasGrid of pages多页网格
view.fitWidthAjustar al ancho de la ventanaFit to the window width适应窗口宽度
view.fitPageVer la página completaShow the whole page显示整页
zoom.resetVolver al 100 %Back to 100%恢复到 100%
zoom.outAlejarZoom out缩小
zoom.inAcercarZoom in放大
ruler.marginLeftMargen izquierdoLeft margin左边距
ruler.marginRightMargen derechoRight margin右边距
ruler.firstSangría de primera líneaFirst line indent首行缩进
ruler.hangingSangría francesaHanging indent悬挂缩进
ruler.leftSangría izquierdaLeft indent左缩进
ruler.rightSangría derechaRight indent右缩进
ruler.tabLeftTabulación izquierdaLeft tab左对齐制表位
ruler.tabCenterTabulación centradaCenter tab居中制表位
ruler.tabRightTabulación derechaRight tab右对齐制表位
ruler.tabDecimalTabulación decimalDecimal tab小数点对齐制表位
ruler.tabHintClic para cambiar de tipo; clic en la regla para poner unaClick to change the kind; click on the ruler to set one单击可更改类型;在标尺上单击可设置制表位
ruler.tabDragArrastra para moverla, o fuera de la regla para quitarlaDrag to move it, or off the ruler to remove it拖动可移动,拖出标尺可删除
find.count{index} de {total}{index} of {total}{index}/{total}
find.findBuscarFind查找
find.replaceWithReemplazar porReplace with替换为
find.previousAnterior (⇧↵)Previous (⇧↵)上一个(⇧↵)
find.nextSiguiente (↵)Next (↵)下一个(↵)
find.matchCaseDistinguir mayúsculas y minúsculasMatch case区分大小写
find.wholeWordSolo palabras completasWhole words only全字匹配
find.replaceReemplazarReplace替换
find.closeCerrar (Esc)Close (Esc)关闭(Esc)
find.replaceOneReemplazar estaReplace this one替换此处
find.replaceAllReemplazar todasReplace all全部替换
find.allTodasAll全部
find.noneSin resultadosNo results没有结果
paper.letterCarta (21,6 × 27,9 cm)Letter (8.5 × 11 in)Letter(8.5 × 11 英寸)
paper.a4A4 (21 × 29,7 cm)A4 (21 × 29.7 cm)A4(21 × 29.7 厘米)
paper.legalOficio (21,6 × 35,6 cm)Legal (8.5 × 14 in)Legal(8.5 × 14 英寸)
margins.normalNormales (2,54 cm)Normal (2.54 cm)常规(2.54 厘米)
margins.narrowEstrechos (1,27 cm)Narrow (1.27 cm)窄(1.27 厘米)
margins.moderateModerados (2,54 y 1,91 cm)Moderate (2.54 and 1.91 cm)适中(2.54 和 1.91 厘米)
margins.wideAnchos (2,54 y 5,08 cm)Wide (2.54 and 5.08 cm)宽(2.54 和 5.08 厘米)
file.defaultdocumentodocument文档
pageSetup.noteLos 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.closeCerrar el menúClose the menu关闭菜单
file.untitledDocumento sin títuloUntitled document无标题文档
menu.fileArchivoFile文件
menu.openAbrir documento…Open document…打开文档…
menu.saveGuardarSave保存
menu.saveAsGuardar como…Save as…另存为…
menu.exportExportarExport导出
menu.openShortAbrirOpen打开
toolbar.tabsHerramientasTools工具
toolbar.tabFormatFormatoFormat格式
toolbar.tabInsertInsertarInsert插入
toolbar.tabPagePáginaPage页面
menu.pages{n} páginas{n} pages{n} 页
menu.page{n} página{n} page{n} 页
menu.unsavedSin guardarNot saved未保存
menu.documentDocumentoDocument文档
menu.backVolver al documentoBack to the document返回文档
menu.docxNotePara seguir editándolo, aquí o en WordTo go on editing it, here or in Word可在这里或 Word 中继续编辑
menu.pdfNotePara enviar o imprimir; etiquetado para lectores de pantallaTo send or print; tagged for screen readers用于发送或打印;带有供屏幕阅读器使用的标记
menu.mdNoteSolo el texto, para notas y la webThe text alone, for notes and the web仅文本,用于笔记和网页
menu.printNoteCon las fuentes de esta computadoraWith the fonts of this computer使用这台电脑上的字体
menu.noLetterheadSin membreteNo letterhead无信头
menu.letterheadOnUn membrete bajo cada páginaA letterhead under every page每页底下都有信头
menu.marginsCustommárgenes propiosown margins自定义边距
menu.interfaceIdioma de la interfazInterface language界面语言
menu.themeAparienciaAppearance外观
theme.lightClaroLight浅色
theme.darkOscuroDark深色
theme.autoComo el sistemaAs the system跟随系统
menu.printImprimir…Print…打印…
pageSetup.titleConfiguración de la páginaPage setup页面设置
pageSetup.applyToAplicar aApply to应用于
pageSetup.thisSectionEsta secciónThis section本节
pageSetup.wholeDocumentTodo el documentoWhole document整篇文档
pageSetup.openConfiguración de la página…Page setup…页面设置…
acceptAceptarOK确定
pageSetup.customPersonalizadoCustom自定义
pageSetup.sizeTamañoSize纸张大小
pageSetup.widthAnchoWidth宽度
pageSetup.heightAltoHeight高度
pageSetup.portraitVerticalPortrait纵向
pageSetup.landscapeHorizontalLandscape横向
pageSetup.orientationOrientaciónOrientation纸张方向
pageSetup.marginsMárgenesMargins页边距
pageSetup.topSuperiorTop上
pageSetup.bottomInferiorBottom下
pageSetup.leftIzquierdoLeft左
pageSetup.rightDerechoRight右
cancelCancelarCancel取消
type.textTextoText文本
type.dateFechaDate日期
type.dateLongFecha largaLong date长日期
type.dateFullFecha completaFull date完整日期
type.numberNúmeroNumber数字
type.currencyMonedaCurrency货币
case.noneAaAaAa
case.upperMAYÚSCULASUPPERCASE大写
case.lowerminúsculaslowercase小写
case.capitalNombre PropioTitle Case首字母大写
panel.outlineEsquemaOutline大纲
panel.variablesVariablesVariables变量
panel.outlineEmptyAquí 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.variablesEmptyUna 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.valueOfValor de {name}Value of {name}{name} 的值
var.controlOf{title} de {name}{title} of {name}{name} 的{title}
var.uses{n} veces{n} uses{n} 处
var.noteRellenar 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.namePlaceholdernombre_de_la_variablevariable_name变量名称
var.newHereVariable nueva, donde está el cursorNew variable, at the cursor在光标处新建变量
var.insertTitlePone la variable en el cursor, o en lugar del texto seleccionadoPuts the variable at the cursor, or in place of the selected text在光标处放置变量,或替换所选文字
var.fillNoneEscribe valores para rellenarType values to fill输入要填写的值
var.fillOneFieldRellenar 1 variable en el documentoFill 1 variable in the document填写文档中的 1 个变量
var.fillFieldsRellenar {n} variables en el documentoFill {n} variables in the document填写文档中的 {n} 个变量
var.fillOneRellenar solo esta (Enter)Fill only this one (Enter)只填写这一个(Enter)
var.introLos 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.otherOtros datosOther data其他数据
var.searchBuscar una variableFind a variable查找变量
var.blocksBloquesBlocks块
var.blockTextUn texto dentro de un párrafoSome text in a paragraph段落中的一段文字
var.blockRowUna fila de la tablaA row of a table表格中的一行
var.blockParagraphsLos párrafos entre sus marcasThe paragraphs between its marks标记之间的段落
var.blockInvertedse queda cuando el valor no estákept when the value is not there没有值时保留
var.blockUnsetSin decidirNot set未设置
var.blockYesSe quedaKept保留
var.blockNoSe quitaTaken out删除
var.blockListUna vez por cada uno de los {n} de los datosOnce for each of the {n} in the data对数据中的 {n} 项各重复一次
var.blockListOneUna vez, por el único de los datosOnce, for the one in the data一次,对应数据中的一项
var.blockHintPara repetir un bloque, carga una lista con «Cargar datos…».To repeat a block, load a list with “Load data…”.要重复一个块,请用“载入数据…”载入一个列表。
var.noMatchNinguna variable tiene “{query}”.No variable has “{query}”.没有包含“{query}”的变量。
var.formatsCómo se escribeHow it is written写法
var.datePlaceholder12/10/2026 u hoy12/10/2026 or today2026-10-12 或 今天
var.numberPlaceholder125000012500001250000
var.loadCargar datos…Load data…载入数据…
var.loadTitleToma los valores de un archivo .jsonTakes the values from a .json file从 .json 文件读取值
var.badJsonEl archivo no es un JSON válido.The file is not valid JSON.该文件不是有效的 JSON。
var.goToIr a donde se usaGo to where it is used转到使用位置
var.valueValorValue值
var.typeTipo de datoData type数据类型
var.caseMayúsculas y minúsculasLetter case大小写
var.decimalsDecimalesDecimals小数位
var.decimalsAutoDecimales: los que traigaDecimals: as given小数位:按原样
var.currencyCodeMoneda: EUR, MXN…Currency: EUR, MXN…货币:CNY、USD…
var.currencyTitleEl código de la moneda (EUR, MXN, USD), o cuántos decimales; vacío, con el signo de pesosThe code of the currency (EUR, MXN, USD), or how many decimals; empty, with a dollar sign货币代码(CNY、USD、EUR),或小数位数;留空则使用美元符号
var.datePatternPatrón: dd/MM/yyyyPattern: dd/MM/yyyy格式:yyyy-MM-dd
var.datePatternTitled, dd, dddd (el día de la semana), M, MM, MMM, MMMM, yy y yyyy se reemplazan; las demás palabras se quedand, dd, dddd (the day of the week), M, MM, MMM, MMMM, yy and yyyy are replaced; other words are keptd、dd、dddd(星期几)、M、MM、MMM、MMMM、yy 和 yyyy 会被替换;其他文字保持不变
var.notNumberNo es un número: se pondrá tal cual.Not a number: it will be inserted as is.不是数字:将按原样插入。
var.notDateNo 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日 或 今天):将按原样插入。
insertInsertarInsert插入
bubble.fitAl {n} % del ancho del textoAt {n}% of the text width为文字宽度的 {n}%
bubble.toVariableConvierte la selección en la variable {{{name}}}Turns the selection into the variable {{{name}}}将所选内容变为变量 {{{name}}}
bubble.toVariableNoSelecciona un nombre corto, sin signos, para hacerlo variableSelect a short name, without symbols, to make it a variable选择一个不含符号的短名称,才能将其变为变量
bubble.styleEstilo {name}Style {name}样式 {name}
bubble.labelAcciones para la selecciónActions for the selection所选内容的操作
bubble.deleteEliminarDelete删除
bubble.copyCopiarCopy复制
bubble.cutCortarCut剪切
bubble.pastePegarPaste粘贴
bubble.pastePlainPegar sin formatoPaste as text粘贴为纯文本
bubble.selectAllSeleccionar todoSelect all全选
bubble.deleteTitleQuita la imagenRemoves the image删除图片
bubble.upperMAYÚSCAPS大写
bubble.upperTitleEl valor, en mayúsculasThe value, in capitals值,全部大写
bubble.capitalTitleEl valor, con mayúscula en cada palabraThe value, with each word capitalized值,每个单词首字母大写
bubble.dateFechaDate日期
bubble.dateTitleEl valor es una fecha: 12 de octubre de 2026The value is a date: 12 de octubre de 2026值是日期:2026年10月12日
bubble.currencyMonedaCurrency货币
bubble.currencyTitleEl valor es un importe: $1,234.50The value is an amount: $1,234.50值是金额:¥1,234.50
bubble.highlightResaltarHighlight突出显示
bubble.highlightTitleResalta en amarilloHighlights in yellow用黄色突出显示
bubble.bullets• Lista• List• 列表
bubble.numbers1. Lista1. List1. 列表
bubble.tableTitleInserta una tabla de 3 × 3Inserts a 3 × 3 table插入 3 × 3 表格
bubble.signaturesFirmasSignatures签名
bubble.signaturesTitleInserta las firmas de asesor y cliente, una al lado de otraInserts the adviser and client signatures, side by side并排插入顾问和客户的签名
bubble.imageImagenImage图片
bubble.imageTitleInserta una imagen, o varias en cuadrículaInserts one image, or several in a grid插入一张图片,或将多张排成网格
bubble.variableTitleInserta una variable de plantillaInserts a template variable插入模板变量
bubble.pageBreakSalto de páginaPage break分页符
insert.sectionNextPageSalto de sección: página siguienteSection break: next page分节符:下一页
insert.sectionContinuousSalto de sección: continuoSection break: continuous分节符:连续
bubble.pageBreakTitleLo que sigue pasa a la página siguienteWhat follows moves to the next page后面的内容移到下一页
bubble.addRow+ Fila+ Row+ 行
bubble.addRowTitleInserta una fila debajoInserts a row below在下方插入一行
bubble.addColumn+ Columna+ Column+ 列
bubble.addColumnTitleInserta una columna a la derechaInserts a column to the right在右侧插入一列
bubble.delRow− Fila− Row− 行
bubble.delRowTitleElimina la filaDeletes the row删除该行
bubble.delColumn− Columna− Column− 列
bubble.delColumnTitleElimina la columnaDeletes the column删除该列
bubble.delTableEliminar tablaDelete table删除表格
bubble.delTableTitleElimina la tabla completaDeletes the whole table删除整个表格
bubble.splitDividirSplit拆分
bubble.splitTitleDivide la celda combinadaSplits the merged cell拆分合并的单元格
bubble.mergeCombinarMerge合并
bubble.mergeTitleCombina las celdas seleccionadasMerges the selected cells合并所选单元格
bubble.noBordersSin bordesNo borders无边框
bubble.bordersCon bordesBorders边框
bubble.noBordersTitleOculta los bordes de toda la tablaHides the borders of the whole table隐藏整个表格的边框
bubble.bordersTitleMuestra los bordes de toda la tablaShows the borders of the whole table显示整个表格的边框
bubble.shadeSombrearShade底纹
bubble.shadeTitlePone o quita el fondo de las celdasAdds or removes the background of the cells添加或删除单元格的背景
bubble.cellsCeldasCells单元格
bubble.paragraphPárrafoParagraph段落
bubble.namePlaceholdernombrename名称
bubble.nameNombre de la variableVariable name变量名称
grid.one1 imagen1 image1 张图片
grid.many{n} imágenes{n} images{n} 张图片
grid.noteCuadrícula de {across} × {rows}. Arrastra una imagen para cambiarla de sitio.Grid of {across} × {rows}. Drag an image to move it.{across} × {rows} 网格。拖动图片可移动它。
grid.emptyNo queda ninguna imagen.No images left.没有剩余的图片。
grid.removeNameQuitar {name}Remove {name}删除 {name}
grid.titleInsertar imágenes en cuadrículaInsert images in a grid以网格插入图片
grid.columnsColumnasColumns列数
grid.moreAñadir más…Add more…添加更多…
grid.removeQuitarRemove删除
app.openFailedNo se pudo abrir el archivo: {error}The file could not be opened: {error}无法打开文件:{error}
app.saveFailedNo se pudo guardar: {error}The document could not be saved: {error}无法保存文档:{error}
app.wordDocumentDocumento de WordWord documentWord 文档
note.anonymousAnónimoAnonymous匿名
note.wordNotaNote批注
panel.notesNotasNotes批注
note.placeholderNota para el texto seleccionadoNote for the selected text对所选文字的批注
note.addAñadir notaAdd note添加批注
note.addTitlePone la nota en el texto seleccionado, o en la palabra del cursorPuts the note on the selected text, or on the word at the cursor将批注添加到所选文字,或光标处的词语
note.emptyUna 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.deleteEliminar notaDelete note删除批注
note.deleteAllEliminar todas las notasDelete all notes删除所有批注
note.goToIr al texto de la notaGo to the text of the note转到批注的文字
note.textOfTexto de la notaText of the note批注内容
note.authorTu nombreYour name你的姓名
note.authorTitleCon este nombre se firman las notas que añadasThe notes you add are signed with this name你添加的批注会署上这个名字
bubble.noteTitleAñade una nota al texto seleccionadoAdds a note to the selected text为所选文字添加批注
bubble.notePlaceholderEscribe la notaType the note输入批注
note.colorColor de la notaNote color批注颜色
view.notesNotas al margenNotes in the margin在页边显示批注
panel.historyVersionesVersions版本
history.emptyAú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.noneLas versiones del documento aparecen aquí cuando la aplicación las guarda.The versions of the document appear here when the application keeps them.当应用程序保存版本时,文档的版本会显示在这里。
history.labelNombre de la versión (opcional)Name of the version (optional)版本名称(可选)
history.saveGuardar versiónSave version保存版本
history.saveTitleGuarda el documento tal como está ahora como una versión a la que volverKeeps the document as it is now as a version to go back to将文档的当前状态保存为可返回的版本
history.untitledVersión sin nombreUnnamed version未命名版本
history.loadingCargando las versiones…Loading the versions…正在载入版本…
history.failedNo se pudieron leer las versiones: {error}The versions could not be read: {error}无法读取版本:{error}
history.openFailedNo se pudo abrir esa versión: {error}That version could not be opened: {error}无法打开该版本:{error}
history.saveFailedNo se pudo guardar la versión: {error}The version could not be saved: {error}无法保存版本:{error}
history.compareVer cambiosSee changes查看更改
history.compareTitleMuestra qué cambió desde esta versión hasta el documento actualShows what changed from this version to the document as it is now显示从此版本到当前文档的更改
history.restoreRestaurarRestore还原
history.restoreTitleVuelve el documento a esta versión. Se puede deshacerTakes the document back to this version. It can be undone将文档恢复到此版本。可以撤销
history.restoredVersión restaurada. Deshacer ({undo}) lo deja como estaba.Version restored. Undo ({undo}) leaves it as it was.已还原版本。撤销({undo})可恢复原样。
history.currentEl documento actualThe current document当前文档
compare.titleCambiosChanges更改
compare.fromDesdeFrom从
compare.toHastaTo到
compare.changesCon los cambios marcadosWith the changes marked标记更改
compare.plainSin marcarUnmarked不标记
compare.count{n} cambios{n} changes{n} 处更改
compare.one1 cambio1 change1 处更改
compare.noneSin cambios en el textoNo 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.prevCambio anteriorPrevious change上一处更改
compare.nextCambio siguienteNext change下一处更改
compare.closeCerrarClose关闭
compare.restoreRestaurar esta versiónRestore this version还原此版本
compare.legendTachado 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.wordIAAIAI
assistant.offDejar 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.connectingBuscando el servidor MCP de este equipo… Clic para dejar de buscarLooking for the MCP server on this machine… Click to stop正在查找本机上的 MCP 服务器… 单击停止
assistant.onUn asistente de IA puede leer y cambiar este documento. Clic para desconectarloAn AI assistant can read and change this document. Click to disconnect itAI 助手可以读取和更改此文档。单击断开连接
letterhead.setMembrete…Letterhead…信头…
letterhead.changeCambiar el membrete…Change the letterhead…更改信头…
letterhead.removeQuitar el membreteRemove the letterhead删除信头
letterhead.saveExtraer el membreteExtract the letterhead提取信头
letterhead.namemembreteletterhead信头
letterhead.fitAjustar los márgenes al membreteFit the margins to the letterhead根据信头调整页边距
letterhead.failedEse 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.wordCompartirShare共享
collab.someoneAlguienSomeone某人
collab.offTrabajar en este documento con otras personas a la vezWork on this document with other people at the same time与其他人同时编辑此文档
collab.connectingConectando con el servidor de colaboración…Connecting to the collaboration server…正在连接协作服务器…
collab.onDocumento compartido. Clic para ver el enlace y quién estáShared document. Click to see the link and who is here共享文档。单击查看链接和在线的人
collab.offlineSin conexión con el servidor. Lo que escribas se envía al volverNo connection to the server. What you type is sent when it is back未连接到服务器。恢复连接后会发送你输入的内容
collab.linkEnlace para invitarLink to invite邀请链接
collab.copyCopiar enlaceCopy link复制链接
collab.copiedCopiadoCopied已复制
collab.leaveDejar de compartir aquíStop sharing here在此停止共享
collab.nameTu nombreYour name你的姓名
collab.youtúyou你
collab.aloneNadie más por ahoraNobody else for now目前没有其他人
collab.peoplePersonas en el documentoPeople on the document文档中的人
collab.failedNo se pudo compartir el documento: {error}The document could not be shared: {error}无法共享文档:{error}
collab.noServerNo hay servidor de colaboración en {url}.There is no collaboration server at {url}.{url} 上没有协作服务器。
collab.askTokenPalabra que pide el servidor para compartirWord the server asks for to share服务器要求的共享口令
collab.goneEste 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.removedYa no tienes acceso a este documento compartido.You no longer have access to this shared document.你已无权访问此共享文档。
collab.outdatedEste 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.leaveToOpenAbrir otro archivo deja de compartir este con los demás. ¿Continuar?Opening another file stops sharing this one with the others. Continue?打开另一个文件会停止与他人共享此文件。是否继续?
insert.imageImagen…Image…图片…
insert.variableVariable…Variable…变量…
insert.noteNota…Note…批注…
insert.footnoteNota al pieFootnote脚注
insert.endnoteNota al finalEndnote尾注
insert.textBoxCuadro de textoText box文本框
reviewRevisarReview审阅
review.toolsControl de cambios: marcar lo que se escribe y se borra, y aceptarlo o rechazarloTrack changes: mark what is typed and deleted, and accept or reject it修订:标记输入和删除的内容,并接受或拒绝
review.trackControlar cambiosTrack changes修订
review.acceptAceptar el cambioAccept change接受修订
review.rejectRechazar el cambioReject change拒绝修订
review.nextCambio siguienteNext change下一处修订
review.prevCambio anteriorPrevious change上一处修订
review.acceptAllAceptar todos los cambiosAccept all changes接受所有修订
review.rejectAllRechazar todos los cambiosReject all changes拒绝所有修订
review.showAllMostrar los cambiosShow the changes显示修订
review.showAcceptedVer como quedaría, con todos aceptadosSee it with all changes accepted查看接受所有修订后的样子
review.showOriginalVer el original, sin los cambiosSee the original, without the changes查看原始状态,不含修订
panel.changesCambiosChanges修订
changes.emptyNo 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.insertedAñadióAdded添加
changes.deletedEliminóDeleted删除
changes.paragraphun salto de párrafoa paragraph break一个段落标记
changes.acceptAceptarAccept接受
changes.rejectRechazarReject拒绝
changes.goToIr al cambioGo to the change转到该修订
changes.movedFromMovió a otro lugarMoved away已移出
changes.movedToMovió aquíMoved here已移入
changes.byDeBy作者
changes.everyoneTodosEveryone所有人
changes.acceptByAceptar los de {author}Accept all by {author}接受 {author} 的所有修订
changes.rejectByRechazar los de {author}Reject all by {author}拒绝 {author} 的所有修订
changes.formattedCambió el formato deFormatted已设置格式
changes.rowInsertedAñadió una filaAdded a row添加了一行
changes.rowDeletedEliminó una filaDeleted a row删除了一行
changes.listla listalist列表
changes.spacingel espaciadospacing间距
changes.indentla sangríaindent缩进
changes.layoutcómo se reparte en las páginaspage flow分页
insert.pageNumberNúmero de página…Page number…页码…
wrap.inlineEn líneaIn line嵌入型
wrap.inlineTitleLa imagen va en la línea, como una letra másThe picture goes in the line, like one more letter图片位于行中,就像一个字
wrap.behindDetrás del textoBehind the text衬于文字下方
wrap.behindTitleLa imagen va debajo del texto, que pasa por encimaThe picture goes under the text, which runs over it图片位于文字下方,文字覆盖在上面
page.firstDifferentPrimera página distintaDifferent first page首页不同
page.ownHeadersEncabezado y pie propios de esta secciónOwn header and footer for this section本节使用独立的页眉和页脚
wrap.squareTexto alrededorWrap text四周型
wrap.squareTitleEl texto rodea la imagenThe text goes round the picture文字环绕在图片四周
wrap.topBottomArriba y abajoTop and bottom上下型
wrap.topBottomTitleEl texto queda encima y debajo de la imagen, no a los ladosThe text stays above and below the picture, not beside it文字位于图片上方和下方,不在旁边
wrap.noneSobre el textoOver the text浮于文字上方
wrap.noneTitleLa imagen va encima del texto, que no se apartaThe picture goes over the text, which does not move图片位于文字上方,文字不移动
insert.linkEnlace…Link…链接…
link.wordEnlaceLink链接
spell.wordOrtografíaSpelling拼写
spell.lookingBuscando sugerencias…Looking for suggestions…正在查找建议…
spell.noneSin sugerenciasNo suggestions没有建议
spell.replaceCambiar por «{word}»Change to “{word}”改为“{word}”
spell.ignoreOmitirIgnore忽略
spell.ignoreTitleDejar esta palabra sin marcar en el documentoLeave this word unmarked in the document在此文档中不再标记这个词
spell.addAñadir al diccionarioAdd to dictionary添加到词典
spell.addTitleTomar esta palabra como bien escrita de ahora en adelanteTake this word as spelled right from now on从现在起将这个词视为拼写正确
link.titleConvierte el texto en un enlace ({key}K)Turns the text into a link ({key}K)将文字变为链接({key}K)
link.addressDirección del enlaceAddress of the link链接地址
link.placeholderPega o escribe una dirección: ejemplo.comPaste or type an address: example.com粘贴或输入地址:example.com
link.applyEnlazarLink链接
link.saveGuardarSave保存
link.openAbrirOpen打开
link.openTitleAbre el enlace en otra pestañaOpens the link in another tab在新标签页中打开链接
link.editCambiarChange更改
link.editTitleCambia la dirección del enlaceChanges the address of the link更改链接地址
link.removeQuitar enlaceRemove link删除链接
link.removeTitleQuita el enlace y deja el textoRemoves the link and keeps the text删除链接并保留文字
link.follow{key} + clic para abrir{key} + click to open按住 {key} 并单击以打开
toolbar.tableOffpon el cursor dentro de una tablaput the cursor inside a table将光标放在表格中
toolbar.insertToolsInsertar tabla, imagen, enlace, firmas, variable, nota o índiceInsert a table, picture, link, signatures, variable, note or table of contents插入表格、图片、链接、签名、变量、批注或目录
toolbar.alignAlineaciónAlignment对齐方式
toolbar.tableToolsTabla: filas, columnas y celdasTable: rows, columns and cells表格:行、列和单元格
toolbar.pageToolsEncabezado, pie y número de páginaHeader, footer and page number页眉、页脚和页码
toolbar.columnsColumnas: el texto en una, dos o tresColumns: the text in one, two or three分栏:文字分为一栏、两栏或三栏
toolbar.unsavedcambios sin guardarunsaved changes有未保存的更改
toc.titleÍndiceContents目录
toc.insertÍndiceTable of contents目录
toc.insertTitleInserta un índice con los títulos del documento y la página de cada unoInserts a table of contents with the headings of the document and the page of each插入包含文档各标题及其页码的目录
toc.insertHereInsertar índice en el cursorInsert table of contents at the cursor在光标处插入目录
toc.updateActualizar índiceUpdate table of contents更新目录
toc.updatedÍndice al díaTable of contents is up to date目录已是最新
toc.emptyAú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.noteEl í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 的默认方式相同;不支持竖排。