Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add i18n support for Brazilian Portuguese (pt-BR) #735

Merged
merged 2 commits into from
May 21, 2024
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
1 change: 1 addition & 0 deletions packages/core/src/i18n/locales/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@ export * from "./en";
export * from "./nl";
export * from "./zh";
export * from "./fr";
export * from "./pt-BR";
198 changes: 198 additions & 0 deletions packages/core/src/i18n/locales/pt-BR.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,198 @@
import type { Dictionary } from "../dictionary";

export const ptBR: Dictionary = {
slash_menu: {
heading: {
title: "Título",
subtext: "Usado para um título de nível superior",
aliases: ["h", "titulo1", "h1"],
group: "Títulos",
},
heading_2: {
title: "Título 2",
subtext: "Usado para seções principais",
aliases: ["h2", "titulo2", "subtitulo"],
group: "Títulos",
},
heading_3: {
title: "Título 3",
subtext: "Usado para subseções e títulos de grupo",
aliases: ["h3", "titulo3", "subtitulo"],
group: "Títulos",
},
numbered_list: {
title: "Lista Numerada",
subtext: "Usado para exibir uma lista numerada",
aliases: ["ol", "li", "lista", "listanumerada", "lista numerada"],
group: "Blocos Básicos",
},
bullet_list: {
title: "Lista com Marcadores",
subtext: "Usado para exibir uma lista não ordenada",
aliases: ["ul", "li", "lista", "listamarcadores", "lista com marcadores"],
group: "Blocos Básicos",
},
paragraph: {
title: "Parágrafo",
subtext: "Usado para o corpo do seu documento",
aliases: ["p", "paragrafo"],
group: "Blocos Básicos",
},
table: {
title: "Tabela",
subtext: "Usado para tabelas",
aliases: ["tabela"],
group: "Avançado",
},
image: {
title: "Imagem",
subtext: "Inserir uma imagem",
aliases: [
"imagem",
"uploadImagem",
"upload",
"img",
"foto",
"media",
"url",
"drive",
"dropbox",
],
group: "Mídia",
},
},
placeholders: {
default: "Digite texto ou use '/' para comandos",
heading: "Título",
bulletListItem: "Lista",
numberedListItem: "Lista",
},
image: {
add_button: "Adicionar Imagem",
},
// from react package:
side_menu: {
add_block_label: "Adicionar bloco",
drag_handle_label: "Abrir menu do bloco",
},
drag_handle: {
delete_menuitem: "Excluir",
colors_menuitem: "Cores",
},
table_handle: {
delete_column_menuitem: "Excluir coluna",
delete_row_menuitem: "Excluir linha",
add_left_menuitem: "Adicionar coluna à esquerda",
add_right_menuitem: "Adicionar coluna à direita",
add_above_menuitem: "Adicionar linha acima",
add_below_menuitem: "Adicionar linha abaixo",
},
suggestion_menu: {
no_items_title: "Nenhum item encontrado",
loading: "Carregando…",
},
color_picker: {
text_title: "Texto",
background_title: "Fundo",
colors: {
default: "Padrão",
gray: "Cinza",
brown: "Marrom",
red: "Vermelho",
orange: "Laranja",
yellow: "Amarelo",
green: "Verde",
blue: "Azul",
purple: "Roxo",
pink: "Rosa",
},
},

formatting_toolbar: {
bold: {
tooltip: "Negrito",
secondary_tooltip: "Mod+B",
},
italic: {
tooltip: "Itálico",
secondary_tooltip: "Mod+I",
},
underline: {
tooltip: "Sublinhado",
secondary_tooltip: "Mod+U",
},
strike: {
tooltip: "Riscado",
secondary_tooltip: "Mod+Shift+X",
},
code: {
tooltip: "Código",
secondary_tooltip: "",
},
colors: {
tooltip: "Cores",
},
link: {
tooltip: "Criar link",
secondary_tooltip: "Mod+K",
},
image_caption: {
tooltip: "Editar legenda",
input_placeholder: "Editar legenda",
},
image_replace: {
tooltip: "Substituir imagem",
},
nest: {
tooltip: "Aninhar bloco",
secondary_tooltip: "Tab",
},
unnest: {
tooltip: "Desaninhar bloco",
secondary_tooltip: "Shift+Tab",
},
align_left: {
tooltip: "Alinhar à esquerda",
},
align_center: {
tooltip: "Alinhar ao centro",
},
align_right: {
tooltip: "Alinhar à direita",
},
align_justify: {
tooltip: "Justificar texto",
},
},
image_panel: {
upload: {
title: "Upload",
file_placeholder: "Upload de imagem",
upload_error: "Erro: Falha no upload",
},
embed: {
title: "Incorporar",
embed_button: "Incorporar imagem",
url_placeholder: "Insira a URL",
},
},
link_toolbar: {
delete: {
tooltip: "Remover link",
},
edit: {
text: "Editar link",
tooltip: "Editar",
},
open: {
tooltip: "Abrir em nova aba",
},
form: {
title_placeholder: "Editar título",
url_placeholder: "Editar URL",
},
},
generic: {
ctrl_shortcut: "Ctrl",
},
};
Loading