Skip to content

Commit b18a9db

Browse files
authored
Merge pull request hinesboy#211 from Barterr/master
Added pt-BR language
2 parents c4fcd00 + aef7ebf commit b18a9db

File tree

7 files changed

+253
-8
lines changed

7 files changed

+253
-8
lines changed

README-EN.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ exports default {
114114
| name | type | default value | describe |
115115
| -------- | :---------: | :------------: | ------- |
116116
| value | String | | Initial value |
117-
| language | String | zh-CN | Language switch, zh-CN: Simplified Chinese , en: English , fr: French |
117+
| language | String | zh-CN | Language switch, zh-CN: Simplified Chinese , en: English , fr: French, pt-BR: Brazilian Portuguese |
118118
| fontSize | String | 15px | font-size of edit area |
119119
| scrollStyle| Boolean | true | Open the scroll bar style(Temp only support chrome) |
120120
| subfield | Boolean | true | true: Double columns - Edit preview same screen , Single Columns - otherwise not |

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ exports default {
121121
| name 名称 | type 类型 | default 默认值 | describe 描述 |
122122
| ------------ | :-----: | :---------: | ---------------------------------------- |
123123
| value | String | | 初始值 |
124-
| language | String | zh-CN | 语言选择,暂支持 zh-CN: 中文简体 , en: 英文 , fr: 法语 |
124+
| language | String | zh-CN | 语言选择,暂支持 zh-CN: 中文简体 , en: 英文 , fr: 法语, pt-BR: TODO |
125125
| fontSize | String | 15px | 编辑区域文字大小 |
126126
| scrollStyle | Boolean | true | 开启滚动条样式(暂时仅支持chrome) |
127127
| subfield | Boolean | true | true: 双栏(编辑预览同屏), false: 单栏(编辑预览分屏) |

src/dev/app.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
<option value="cn">中文</option>
55
<option value="en">English</option>
66
<option value="fr">Français</option>
7+
<option value="pt-BR">Português</option>
78
</select>
89
<section class="page-header">
910
<h1 class="project-name">mavonEditor</h1>

src/dev/assets/config.js

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,18 @@
44
import help_zh_CN from './lang/zh-CN/help_zh-CN.md'
55
import help_en from './lang/en/help_en.md'
66
import help_fr from './lang/fr/help_fr.md'
7+
import help_pt_BR from './lang/fr/help_pt-BR.md'
78
import words_zh_CN from './lang/zh-CN/words_zh-CN.json'
89
import words_en from './lang/en/words_en.json'
910
import words_fr from './lang/fr/words_fr.json'
11+
import words_pt_BR from './lang/fr/words_pt-BR.json'
1012
export const CONFIG = {
11-
'help_cn': help_zh_CN,
13+
'help_zh-CN': help_zh_CN,
14+
'help_pt-BR': help_pt_BR,
1215
'help_en': help_en,
1316
'help_fr': help_fr,
14-
'words_cn': words_zh_CN,
17+
'words_zh-CN': words_zh_CN,
18+
'words_pt-BR': words_pt_BR,
1519
'words_en': words_en,
16-
'words_fr': words_fr
17-
}
20+
'words_fr': words_fr,
21+
}

src/lib/config.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,17 +13,21 @@
1313
import help_zh_CN from './lang/zh-CN/help_zh-CN.md'
1414
import help_en from './lang/en/help_en.md'
1515
import help_fr from './lang/fr/help_fr.md'
16+
import help_pt_BR from './lang/fr/help_pt-BR.md'
1617
import words_zh_CN from './lang/zh-CN/words_zh-CN.json'
1718
import words_en from './lang/en/words_en.json'
1819
import words_fr from './lang/fr/words_fr.json'
20+
import words_pt_BR from './lang/fr/words_pt-BR.json'
1921
export const CONFIG = {
2022
'help_zh-CN': help_zh_CN,
23+
'help_pt-BR': help_pt_BR,
2124
'help_en': help_en,
2225
'help_fr': help_fr,
2326
'words_zh-CN': words_zh_CN,
27+
'words_pt-BR': words_pt_BR,
2428
'words_en': words_en,
2529
'words_fr': words_fr,
26-
'langList': ['en' , 'zh-CN' , 'fr'],
30+
'langList': ['en', 'zh-CN', 'fr', 'pt-BR'],
2731
'toolbars': {
2832
'bold': true,
2933
'italic': true,
@@ -55,4 +59,4 @@ export const CONFIG = {
5559
'help': true,
5660
'preview': true
5761
}
58-
};
62+
};

src/lib/lang/pt-BR/help_pt-BR.md

Lines changed: 191 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,191 @@
1+
Guia Markdown
2+
===
3+
> Detalhes: [http://commonmark.org/help/](http://commonmark.org/help/)
4+
5+
## **Negrito**
6+
```
7+
**negrito**
8+
__negrito__
9+
```
10+
## *Itálico*
11+
```
12+
*itálico*
13+
_itálico_
14+
```
15+
## Cabeçalho
16+
```
17+
# h1 #
18+
h1
19+
====
20+
## h2 ##
21+
h2
22+
----
23+
### h3 ###
24+
#### h4 ####
25+
##### h5 #####
26+
###### h6 ######
27+
```
28+
## Linha Divisora
29+
```
30+
***
31+
---
32+
```
33+
****
34+
## ^Sobre^scrito & ~Sub~scrito
35+
```
36+
sobre x^2^
37+
sub H~2~0
38+
```
39+
## ++Sublinhar++ & ~~Tachar~~
40+
```
41+
++sublinhar++
42+
~~tachar~~
43+
```
44+
## ==Marcador==
45+
```
46+
==marcador==
47+
```
48+
## Citação
49+
50+
```
51+
> citação 1
52+
>> citação 2
53+
>>> citação 3
54+
...
55+
```
56+
57+
## Listas
58+
```
59+
lista Numerada
60+
1.
61+
2.
62+
3.
63+
...
64+
65+
lista com marcadores
66+
-
67+
-
68+
...
69+
```
70+
## Link
71+
```
72+
Link Texto
73+
[Text](www.baidu.com)
74+
75+
Link Imagem
76+
![Text](http://www.image.com)
77+
```
78+
## Código
79+
\``` tipo
80+
81+
bloco de código
82+
83+
\```
84+
85+
\` código \`
86+
87+
```c++
88+
int main()
89+
{
90+
printf("hello world!");
91+
}
92+
```
93+
`code`
94+
95+
## Tabela
96+
```
97+
| th1 | th2 | th3 |
98+
| :-- | :--: | ----: |
99+
| esquerda | centro | direita |
100+
```
101+
| th1 | th2 | th3 |
102+
| :-- | :--: | ----: |
103+
| esquerda | centro | direita |
104+
| ---------------------- | ------------- | ----------------- |
105+
## Rodapé
106+
```
107+
olá[^olá]
108+
```
109+
110+
Olhe para baixo[^olá]
111+
112+
[^olá]: rodapé
113+
114+
## Emojis
115+
Detalhes: [https://www.webpagefx.com/tools/emoji-cheat-sheet/](https://www.webpagefx.com/tools/emoji-cheat-sheet/)
116+
```
117+
:laughing:
118+
:blush:
119+
:smiley:
120+
:)
121+
...
122+
```
123+
:laughing::blush::smiley::)
124+
125+
## $\KaTeX$ Mathematics
126+
127+
Podemos mostrar fórmulas por exemplo:$x_i + y_i = z_i$ and $\sum_{i=1}^n a_i=0$
128+
Podemos também mostrar em uma única linha:
129+
$$\sum_{i=1}^n a_i=0$$
130+
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)
131+
132+
## Layout
133+
134+
::: hljs-left
135+
`::: hljs-left`
136+
`esquerda`
137+
`:::`
138+
:::
139+
140+
::: hljs-center
141+
`::: hljs-center`
142+
`centro`
143+
`:::`
144+
:::
145+
146+
::: hljs-right
147+
`::: hljs-right`
148+
`direita`
149+
`:::`
150+
:::
151+
152+
## Definições
153+
154+
Termo 1
155+
156+
: Definição 1
157+
158+
Termo 2 com *markup inline*
159+
160+
: Definição 2
161+
162+
{ um pouco de código, parte da Definição 2 }
163+
164+
Terceiro parágrafo da definição 2.
165+
166+
```
167+
Termo 1
168+
169+
: Definição 1
170+
171+
Termo 2 com *markup inline*
172+
173+
: Definição 2
174+
175+
{ um pouco de código, parte da Definição 2 }
176+
177+
Terceiro parágrafo da definição 2.
178+
179+
```
180+
181+
## Abreviações
182+
*[HTML]: Hyper Text Markup Language
183+
*[W3C]: World Wide Web Consortium
184+
A especificação HTML
185+
é mantida pela W3C.
186+
```
187+
*[HTML]: Hyper Text Markup Language
188+
*[W3C]: World Wide Web Consortium
189+
The HTML specification
190+
é mantida pela W3C.
191+
```
Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
{
2+
"start_editor": "Cemeçar edição...",
3+
"navigation_title": "Navegação",
4+
"tl_bold": "Negrito",
5+
"tl_italic": "Itálico",
6+
"tl_header": "Cabeçalho",
7+
"tl_underline": "Sublinhar",
8+
"tl_strikethrough": "Tachar",
9+
"tl_mark": "Marcação",
10+
"tl_superscript": "Sobrescrito",
11+
"tl_subscript": "Subscrito",
12+
"tl_quote": "Citação",
13+
"tl_ol": "Lista Numerada",
14+
"tl_ul": "Lista com marcadores",
15+
"tl_link": "Link",
16+
"tl_image": "Link de imagem",
17+
"tl_code": "Código",
18+
"tl_table": "Tabela",
19+
"tl_undo": "Desfazer",
20+
"tl_redo": "Refazer",
21+
"tl_trash": "Lixo",
22+
"tl_save": "Salvar",
23+
"tl_navigation_on": "Mostrar Navigation",
24+
"tl_navigation_off": "Esconder Navigation",
25+
"tl_preview": "Preview",
26+
"tl_aligncenter": "Alinhar no centro",
27+
"tl_alignleft": "Alinhar à esquerda",
28+
"tl_alignright": "Alinhar à direita",
29+
"tl_edit": "Editar",
30+
"tl_single_column": "Coluna Única",
31+
"tl_double_column": "Duas Colunas",
32+
"tl_fullscreen_on": "Ligar Tela Cheia",
33+
"tl_fullscreen_off": "Desligar Tela Cheia",
34+
"tl_read": "Modo de Leitura",
35+
"tl_html_on": "Ligar HTML",
36+
"tl_html_off": "Desligar HTML",
37+
"tl_help": "Guia Markdown",
38+
"tl_upload": "Upload de Imagens",
39+
"tl_upload_remove": "Remover",
40+
"tl_popup_link_title": "Adicionar Link",
41+
"tl_popup_link_text": "Link Texto",
42+
"tl_popup_link_addr": "Link Endereço",
43+
"tl_popup_link_sure": "Claro",
44+
"tl_popup_link_cancel": "Cancelar"
45+
}

0 commit comments

Comments
 (0)