Skip to content

Commit

Permalink
Feat: support chinese translations
Browse files Browse the repository at this point in the history
  • Loading branch information
lovemintblue committed Dec 5, 2023
1 parent d3079e1 commit 6d182e6
Show file tree
Hide file tree
Showing 6 changed files with 219 additions and 0 deletions.
117 changes: 117 additions & 0 deletions resources/lang/zh_CN/editor.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,117 @@
<?php

return [
'skip_toolbar' => '跳过工具栏',
'align_center' => '文本居中对齐',
'align_justify' => '对齐文本',
'align_left' => '文本左对齐',
'align_right' => '文本右对齐',
'blockquote' => '块引用',
'blocks' => [
'insert' => '插入块',
'update' => '更新块',
],
'bold' => '粗体',
'code_block' => '代码块',
'code' => '内联代码',
'color' => [
'label' => '颜色',
'choose' => '选择',
'remove' => '移除',
],
'details' => '详情',
'erase' => '删除所有内容',
'fullscreen' => [
'enter' => '进入全屏模式',
'exit' => '提出全屏模式',
],
'grid' => [
'label' => '网格',
'two_columns' => '2列',
'three_columns' => '3列',
'four_columns' => '4列',
'five_columns' => '5列',
'fixed_two_columns' => '固定2列',
'fixed_three_columns' => '固定3列',
'fixed_four_columns' => '固定4列',
'fixed_five_columns' => '固定5列',
'asymmetric_left_thirds' => '左不对称 - 1/3',
'asymmetric_right_thirds' => '右不对称 - 1/3',
'asymmetric_left_fourths' => '左不对称- 1/4',
'asymmetric_right_fourths' => '右不对称 - 1/4',
],
'grid-builder' => [
'label' => '网格生成器',
],
'heading' => [
'label' => '标题',
'h1' => '标题1',
'h2' => '标题2',
'h3' => '标题3',
'h4' => '标题4',
'h5' => '标题5',
'h6' => '标题6',
],
'highlight' => '高亮',
'hurdle' => [
'label' => '',
'colors' => [
'gray_light' => '灰色-浅色',
'gray' => '灰色',
'gray_dark' => '灰色-黑色',
'primary' => '默认',
'secondary' => '次要',
'tertiary' => '占位',
'accent' => '强调',
],
],
'hr' => '水平线',
'italic' => '斜体',
'lead' => '引导段落',
'link' => [
'insert_edit' => '插入/编辑 链接',
'edit' => '编辑链接',
'remove' => '移除链接',
],
'list' => [
'bulleted' => '无序列表',
'ordered' => '有序列表',
'checked' => '可选中列表',
],
'media' => '插入/编辑 媒体',
'paragraph' => '段落',
'redo' => '重做',
'remove_color' => '移除颜色',
'small' => '小号文字',
'source' => '源代码',
'strike' => '删除线',
'subscript' => '下标',
'superscript' => '上标',
'table' => [
'label' => '表格',
'insert_table' => '插入表格',
'add_column_before' => '向左插入1列',
'add_column_after' => '向右插入1列',
'delete_column' => '删除列',
'add_row_before' => '向上插入1行',
'add_row_after' => '向下插入1行',
'delete_row' => '删除行',
'delete_table' => '删除表格',
'merge_cells' => '合并单元格',
'split_cell' => '拆分单元格',
'toggle_header_column' => '切换标题栏',
'toggle_header_row' => '切换标题行',
'toggle_header_cell' => '切换标题单元格',
'merge_or_split' => '合并或拆分',
'fix_tables' => '修复表',
'go_to_next_cell' => '转到下一个单元格',
'go_to_previous_cell' => '转到上一个单元格',
],
'underline' => '下化线',
'undo' => '撤消',
'video' => [
'youtube' => '插入 YouTube 视频',
'vimeo' => '插入 Vimeo 视频',
'oembed' => '插入视频',
],
];
14 changes: 14 additions & 0 deletions resources/lang/zh_CN/grid-modal.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<?php

return [
'heading' => '网格生成器',
'labels' => [
'submit' => '插入网格',
'columns' => '',
'stack_at' => '堆叠',
'asymmetric' => '不对称',
'asymmetric_left' => '左列跨度',
'asymmetric_right' => '右列跨度',
'dont_stack' => '不要堆叠',
],
];
32 changes: 32 additions & 0 deletions resources/lang/zh_CN/link-modal.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
<?php

return [
'heading' => [
'update' => '更新链接',
'insert' => '插入链接',
],
'buttons' => [
'remove' => '移除',
'cancel' => '取消',
'update' => '更新',
'insert' => '插入',
],
'labels' => [
'url' => '网址',
'language' => '语言',
'target' => [
'default' => '默认',
'new_window' => '新窗口',
'parent' => '父框架',
'top' => '浏览器窗口',
],
'referrer_policy' => '推荐人政策',
'as_button' => '作为按钮',
'button_theme' => [
'primary' => '默认',
'secondary' => '次要',
'tertiary' => '占位',
'accent' => '强调',
],
],
];
19 changes: 19 additions & 0 deletions resources/lang/zh_CN/media-modal.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
<?php

return [
'heading' => [
'update' => '更新媒体',
'insert' => '插入媒体',
],
'buttons' => [
'cancel' => '取消',
'insert' => '插入',
],
'labels' => [
'file' => '文件',
'link_text' => '文本链接',
'alt' => '替代文本',
'alt_helper_text' => '了解如何描述图像的目的。',
'title' => '标题',
],
];
25 changes: 25 additions & 0 deletions resources/lang/zh_CN/oembed-modal.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
<?php

return [
'heading' => '插入视频',
'buttons' => [
'cancel' => '取消',
'insert' => '插入',
],
'labels' => [
'url' => '链接',
'width' => '宽度',
'height' => '高度',
'responsive' => '响应式',
'responsive_helper' => '如果视频不响应,请将宽度和高度设置为视频应有的实际像素尺寸。 默认为 640x480。',
'autoplay' => '自动播放',
'loop' => '循环',
'title' => '标题',
'byline' => '作者',
'portrait' => '照片',
'controls' => '控制',
'nocookie' => '没有 Cookie',
'start_at' => '开始时间',
'local' => '本地',
],
];
12 changes: 12 additions & 0 deletions resources/lang/zh_CN/source-modal.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<?php

return [
'heading' => '编辑源代码',
'buttons' => [
'cancel' => '取消',
'update' => '更新',
],
'labels' => [
'source' => '来源',
],
];

0 comments on commit 6d182e6

Please sign in to comment.