Skip to content

Commit

Permalink
feat(i18n): Brazilian portuguese localization
Browse files Browse the repository at this point in the history
Brazilian portuguese localization
  • Loading branch information
iliyaZelenko authored Oct 9, 2019
2 parents a4a176d + af1f55d commit 429d970
Show file tree
Hide file tree
Showing 3 changed files with 123 additions and 2 deletions.
2 changes: 1 addition & 1 deletion demo/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import { MAIN_MODULE } from './config'

const vuetify = new Vuetify({
lang: {
current: 'en' // en | es | fr | pl | ru
current: 'en' // en | es | fr | pl | ru | ptbr
}
})

Expand Down
4 changes: 3 additions & 1 deletion src/i18n/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import ru from './ru'
import es from './es'
import pl from './pl'
import fr from './fr'
import ptbr from './ptbr'
import ConsoleLogger from '~/logging/ConsoleLogger'

export const defaultLanguage = 'en'
Expand All @@ -12,7 +13,8 @@ export const dictionary = {
ru,
es,
pl,
fr
fr,
ptbr
}

export function getCurrentLang () {
Expand Down
119 changes: 119 additions & 0 deletions src/i18n/ptbr/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,119 @@
export default {
extensions: {
Blockquote: {
buttons: {
blockquote: {
tooltip: 'Bloco de citação'
}
}
},
Bold: {
buttons: {
bold: {
tooltip: 'Negrito'
}
}
},
BulletList: {
buttons: {
bulletList: {
tooltip: 'Lista de pontos'
}
}
},
Code: {
buttons: {
code: {
tooltip: 'Código'
}
}
},
CodeBlock: {
buttons: {
codeBlock: {
tooltip: 'Bloco de código'
}
}
},
History: {
buttons: {
undo: {
tooltip: 'Desfazer'
},
redo: {
tooltip: 'Refazer'
}
}
},
HorizontalRule: {
buttons: {
horizontalRule: {
tooltip: 'Linha horizontal'
}
}
},
Italic: {
buttons: {
italic: {
tooltip: 'Itálico'
}
}
},
OrderedList: {
buttons: {
orderedList: {
tooltip: 'Lista ordenada'
}
}
},
Paragraph: {
buttons: {
paragraph: {
tooltip: 'Parágrafo'
}
}
},
Strike: {
buttons: {
strike: {
tooltip: 'Riscado'
}
}
},
Underline: {
buttons: {
underline: {
tooltip: 'Sublinhado'
}
}
},
Heading: {
buttons: {
heading: {
tooltip: ({ level }) => 'cabeçalho nível ' + level
}
}
},
Link: {
buttons: {
isActive: {
tooltip: 'Mudar Link'
},
notActive: {
tooltip: 'Adicionar Link'
}
},
window: {
title: 'Configurar link',
form: {
hrefLabel: 'link'
},
buttons: {
close: 'Fechar',
remove: 'Remover',
apply: 'Aplicar'
}
}
}
}
}

0 comments on commit 429d970

Please sign in to comment.