Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README-EN.md
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ exports default {
| name | type | default value | describe |
| -------- | :---------: | :------------: | ------- |
| value | String | | Initial value |
| language | String | zh-CN | Language switch, zh-CN: Simplified Chinese , en: English , fr: French |
| language | String | zh-CN | Language switch, zh-CN: Simplified Chinese , en: English , fr: French, pt-BR: Brazilian Portuguese |
| fontSize | String | 15px | font-size of edit area |
| scrollStyle| Boolean | true | Open the scroll bar style(Temp only support chrome) |
| subfield | Boolean | true | true: Double columns - Edit preview same screen , Single Columns - otherwise not |
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ exports default {
| name 名称 | type 类型 | default 默认值 | describe 描述 |
| ------------ | :-----: | :---------: | ---------------------------------------- |
| value | String | | 初始值 |
| language | String | zh-CN | 语言选择,暂支持 zh-CN: 中文简体 , en: 英文 , fr: 法语 |
| language | String | zh-CN | 语言选择,暂支持 zh-CN: 中文简体 , en: 英文 , fr: 法语, pt-BR: TODO |
| fontSize | String | 15px | 编辑区域文字大小 |
| scrollStyle | Boolean | true | 开启滚动条样式(暂时仅支持chrome) |
| subfield | Boolean | true | true: 双栏(编辑预览同屏), false: 单栏(编辑预览分屏) |
Expand Down
1 change: 1 addition & 0 deletions src/dev/app.vue
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
<option value="cn">中文</option>
<option value="en">English</option>
<option value="fr">Français</option>
<option value="pt-BR">Português</option>
</select>
<section class="page-header">
<h1 class="project-name">mavonEditor</h1>
Expand Down
12 changes: 8 additions & 4 deletions src/dev/assets/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,18 @@
import help_zh_CN from './lang/zh-CN/help_zh-CN.md'
import help_en from './lang/en/help_en.md'
import help_fr from './lang/fr/help_fr.md'
import help_pt_BR from './lang/fr/help_pt-BR.md'
import words_zh_CN from './lang/zh-CN/words_zh-CN.json'
import words_en from './lang/en/words_en.json'
import words_fr from './lang/fr/words_fr.json'
import words_pt_BR from './lang/fr/words_pt-BR.json'
export const CONFIG = {
'help_cn': help_zh_CN,
'help_zh-CN': help_zh_CN,
'help_pt-BR': help_pt_BR,
'help_en': help_en,
'help_fr': help_fr,
'words_cn': words_zh_CN,
'words_zh-CN': words_zh_CN,
'words_pt-BR': words_pt_BR,
'words_en': words_en,
'words_fr': words_fr
}
'words_fr': words_fr,
}
8 changes: 6 additions & 2 deletions src/lib/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,17 +13,21 @@
import help_zh_CN from './lang/zh-CN/help_zh-CN.md'
import help_en from './lang/en/help_en.md'
import help_fr from './lang/fr/help_fr.md'
import help_pt_BR from './lang/fr/help_pt-BR.md'
import words_zh_CN from './lang/zh-CN/words_zh-CN.json'
import words_en from './lang/en/words_en.json'
import words_fr from './lang/fr/words_fr.json'
import words_pt_BR from './lang/fr/words_pt-BR.json'
export const CONFIG = {
'help_zh-CN': help_zh_CN,
'help_pt-BR': help_pt_BR,
'help_en': help_en,
'help_fr': help_fr,
'words_zh-CN': words_zh_CN,
'words_pt-BR': words_pt_BR,
'words_en': words_en,
'words_fr': words_fr,
'langList': ['en' , 'zh-CN' , 'fr'],
'langList': ['en', 'zh-CN', 'fr', 'pt-BR'],
'toolbars': {
'bold': true,
'italic': true,
Expand Down Expand Up @@ -55,4 +59,4 @@ export const CONFIG = {
'help': true,
'preview': true
}
};
};
191 changes: 191 additions & 0 deletions src/lib/lang/pt-BR/help_pt-BR.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,191 @@
Guia Markdown
===
> Detalhes: [http://commonmark.org/help/](http://commonmark.org/help/)

## **Negrito**
```
**negrito**
__negrito__
```
## *Itálico*
```
*itálico*
_itálico_
```
## Cabeçalho
```
# h1 #
h1
====
## h2 ##
h2
----
### h3 ###
#### h4 ####
##### h5 #####
###### h6 ######
```
## Linha Divisora
```
***
---
```
****
## ^Sobre^scrito & ~Sub~scrito
```
sobre x^2^
sub H~2~0
```
## ++Sublinhar++ & ~~Tachar~~
```
++sublinhar++
~~tachar~~
```
## ==Marcador==
```
==marcador==
```
## Citação

```
> citação 1
>> citação 2
>>> citação 3
...
```

## Listas
```
lista Numerada
1.
2.
3.
...

lista com marcadores
-
-
...
```
## Link
```
Link Texto
[Text](www.baidu.com)

Link Imagem
![Text](http://www.image.com)
```
## Código
\``` tipo

bloco de código

\```

\` código \`

```c++
int main()
{
printf("hello world!");
}
```
`code`

## Tabela
```
| th1 | th2 | th3 |
| :-- | :--: | ----: |
| esquerda | centro | direita |
```
| th1 | th2 | th3 |
| :-- | :--: | ----: |
| esquerda | centro | direita |
| ---------------------- | ------------- | ----------------- |
## Rodapé
```
olá[^olá]
```

Olhe para baixo[^olá]

[^olá]: rodapé

## Emojis
Detalhes: [https://www.webpagefx.com/tools/emoji-cheat-sheet/](https://www.webpagefx.com/tools/emoji-cheat-sheet/)
```
:laughing:
:blush:
:smiley:
:)
...
```
:laughing::blush::smiley::)

## $\KaTeX$ Mathematics

Podemos mostrar fórmulas por exemplo:$x_i + y_i = z_i$ and $\sum_{i=1}^n a_i=0$
Podemos também mostrar em uma única linha:
$$\sum_{i=1}^n a_i=0$$
Detalhes: [katex](http://www.intmath.com/cg5/katex-mathjax-comparison.php)和[katex function](https://github.com/Khan/KaTeX/wiki/Function-Support-in-KaTeX)以及[latex](https://math.meta.stackexchange.com/questions/5020/mathjax-basic-tutorial-and-quick-reference)

## Layout

::: hljs-left
`::: hljs-left`
`esquerda`
`:::`
:::

::: hljs-center
`::: hljs-center`
`centro`
`:::`
:::

::: hljs-right
`::: hljs-right`
`direita`
`:::`
:::

## Definições

Termo 1

: Definição 1

Termo 2 com *markup inline*

: Definição 2

{ um pouco de código, parte da Definição 2 }

Terceiro parágrafo da definição 2.

```
Termo 1

: Definição 1

Termo 2 com *markup inline*

: Definição 2

{ um pouco de código, parte da Definição 2 }

Terceiro parágrafo da definição 2.

```

## Abreviações
*[HTML]: Hyper Text Markup Language
*[W3C]: World Wide Web Consortium
A especificação HTML
é mantida pela W3C.
```
*[HTML]: Hyper Text Markup Language
*[W3C]: World Wide Web Consortium
The HTML specification
é mantida pela W3C.
```
45 changes: 45 additions & 0 deletions src/lib/lang/pt-BR/words_pt-BR.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
{
"start_editor": "Cemeçar edição...",
"navigation_title": "Navegação",
"tl_bold": "Negrito",
"tl_italic": "Itálico",
"tl_header": "Cabeçalho",
"tl_underline": "Sublinhar",
"tl_strikethrough": "Tachar",
"tl_mark": "Marcação",
"tl_superscript": "Sobrescrito",
"tl_subscript": "Subscrito",
"tl_quote": "Citação",
"tl_ol": "Lista Numerada",
"tl_ul": "Lista com marcadores",
"tl_link": "Link",
"tl_image": "Link de imagem",
"tl_code": "Código",
"tl_table": "Tabela",
"tl_undo": "Desfazer",
"tl_redo": "Refazer",
"tl_trash": "Lixo",
"tl_save": "Salvar",
"tl_navigation_on": "Mostrar Navigation",
"tl_navigation_off": "Esconder Navigation",
"tl_preview": "Preview",
"tl_aligncenter": "Alinhar no centro",
"tl_alignleft": "Alinhar à esquerda",
"tl_alignright": "Alinhar à direita",
"tl_edit": "Editar",
"tl_single_column": "Coluna Única",
"tl_double_column": "Duas Colunas",
"tl_fullscreen_on": "Ligar Tela Cheia",
"tl_fullscreen_off": "Desligar Tela Cheia",
"tl_read": "Modo de Leitura",
"tl_html_on": "Ligar HTML",
"tl_html_off": "Desligar HTML",
"tl_help": "Guia Markdown",
"tl_upload": "Upload de Imagens",
"tl_upload_remove": "Remover",
"tl_popup_link_title": "Adicionar Link",
"tl_popup_link_text": "Link Texto",
"tl_popup_link_addr": "Link Endereço",
"tl_popup_link_sure": "Claro",
"tl_popup_link_cancel": "Cancelar"
}