Browse Source

Merge branch 'dev' of https://github.com/artf/grapesjs into dev

pull/3147/head
Artur Arseniev 5 years ago
parent
commit
6781b9c75e
  1. 2
      docs/README.md
  2. 2
      docs/modules/Components.md
  3. 2
      package.json
  4. 198
      src/i18n/locale/ca.js

2
docs/README.md

@ -11,7 +11,7 @@ GrapesJS ships with features and tools that enable you to craft easy to use buil
## Why GrapesJS?
GrapesJS was designed primarily to for use inside Content Management Systems to speed up the creation of dynamic templates and replace common WYSIWYG editors. Which are good for content editing, but inappropriate for creating HTML structures. Instead of creating an application we decided to create an extensible framework that could be used by anyone for any purpose.
GrapesJS was designed primarily for use inside Content Management Systems to speed up the creation of dynamic templates and replace common WYSIWYG editors. Which are good for content editing, but inappropriate for creating HTML structures. Instead of creating an application we decided to create an extensible framework that could be used by anyone for any purpose.

2
docs/modules/Components.md

@ -79,7 +79,7 @@ In the first step, the HTML string is parsed and transformed to what is called *
}
```
The real **Component Definition** would be a little bit bigger so so we'd reduced the JSON for the sake of simplicity.
The real **Component Definition** would be a little bit bigger so we've reduced the JSON for the sake of simplicity.
You might notice the result is similar to what is generally called a **Virtual DOM**, a lightweight representation of the DOM element. This actually helps the editor to keep track of the state of our elements and make performance-friendly changes/updates.
The meaning of properties like `tagName`, `attributes` and `components` are quite obvious, but what about `type`?! This particular property specifies the **Component Type** of our **Component Definition** (you check the list of default components [below](#built-in-component-types)) and if it's omitted, the default one will be used `type: 'default'`.

2
package.json

@ -20,7 +20,7 @@
"backbone": "1.3.3",
"backbone-undo": "^0.2.5",
"cash-dom": "^2.3.9",
"codemirror": "^5.49.2",
"codemirror": "^5.58.2",
"codemirror-formatting": "^1.0.0",
"keymaster": "^1.6.2",
"promise-polyfill": "^8.1.3",

198
src/i18n/locale/ca.js

@ -0,0 +1,198 @@
const traitInputAttr = { placeholder: 'ex. Text aquí' };
export default {
assetManager: {
addButton: 'Afegir imatge',
inputPlh: 'http://ruta/a/la/imatge.jpg',
modalTitle: 'Escollir imatge',
uploadTitle: 'Arrossega els fitxers aquí o fes clic per a pujar-ne'
},
// Here just as a reference, GrapesJS core doesn't contain any block,
// so this should be omitted from other local files
blockManager: {
labels: {
// 'block-id': 'Block Label',
},
categories: {
// 'category-id': 'Category Label',
}
},
domComponents: {
names: {
'': 'Capsa',
wrapper: 'Cos',
text: 'Text',
comment: 'Comentari',
image: 'Imatge',
video: 'Vídeo',
label: 'Etiqueta',
link: 'Enllaç',
map: 'Mapa',
tfoot: 'Peu de la taula',
tbody: 'Cos de la taula',
thead: 'Capçalera de la taula',
table: 'Taula',
row: 'Fila de la taula',
cell: 'Cel·la de la taula'
}
},
deviceManager: {
device: 'Dispositius',
devices: {
desktop: 'Escriptori',
tablet: 'Tauleta',
mobileLandscape: 'Mòbil en horitzontal',
mobilePortrait: 'Mòbil en vertical'
}
},
panels: {
buttons: {
titles: {
preview: 'Vista prèvia',
fullscreen: 'Pantalla sencera',
'sw-visibility': 'Veure components',
'export-template': 'Veure codi',
'open-sm': 'Obrir Administrador d\'estils',
'open-tm': 'Configuració',
'open-layers': 'Obrir Aministrador de capes',
'open-blocks': 'Obrir Blocs'
}
}
},
selectorManager: {
label: 'Classes',
selected: 'Seleccionat',
emptyState: '- Estat -',
states: {
hover: 'A sobre',
active: 'Clic',
'nth-of-type(2n)': 'Parell/Senar'
}
},
styleManager: {
empty: 'Escull un element abans d\'utilitzar l\'Administrador d\'estils',
layer: 'Capa',
fileButton: 'Imatges',
sectors: {
general: 'General',
layout: 'Disseny',
typography: 'Tipografia',
decorations: 'Decoracions',
extra: 'Extres',
flex: 'Flex',
dimension: 'Tamany'
},
// The core library generates the name by their `property` name
properties: {
float: 'Flotant',
display: 'Vista',
position: 'Posició',
top: 'Superior',
right: 'Dreta',
left: 'Esquerra',
bottom: 'Inferior',
width: 'Ample',
height: 'Alt',
'max-width': 'Ample màx.',
'max-height': 'Alt màx.',
margin: 'Marge',
'margin-top': 'Marge superior',
'margin-right': 'Marge dret',
'margin-left': 'Marge esquerra',
'margin-bottom': 'Marge inferior',
padding: 'Padding',
'padding-top': 'Padding superior',
'padding-left': 'Padding esquerra',
'padding-right': 'Padding dret',
'padding-bottom': 'Padding inferior',
'font-family': 'Tipus de lletra',
'font-size': 'Tamany de la font',
'font-weight': 'Pes',
'letter-spacing': 'Espai entre lletres',
color: 'Color',
'line-height': 'Interlineat',
'text-align': 'Alineació del text',
'text-shadow': 'Ombra del text',
'text-shadow-h': 'Ombra del text: horizontal',
'text-shadow-v': 'Ombra del text: vertical',
'text-shadow-blur': 'Desenfocament de l\'ombra del text',
'text-shadow-color': 'Color de l\'ombra del text',
'border-top-left': 'Marc superior esquerra',
'border-top-right': 'Marc superior dret',
'border-bottom-left': 'Marc inferior esquerra',
'border-bottom-right': 'Marc inferior dret',
'border-radius-top-left': 'Radi del marc superior esquerra',
'border-radius-top-right': 'Radi del marc superior dret',
'border-radius-bottom-left': 'Radi del marc inferior esquerra',
'border-radius-bottom-right': 'Radi del marc inferior dret',
'border-radius': 'Radi del marc',
border: 'Marc',
'border-width': 'Ample del marc',
'border-style': 'Estil del marc',
'border-color': 'Color del marc',
'box-shadow': 'Ombra de la capsa',
'box-shadow-h': 'Ombra de la capsa: horizontal',
'box-shadow-v': 'Ombra de la capsa: vertical',
'box-shadow-blur': 'Desenfocament de l\'ombra de la capsa',
'box-shadow-spread': 'Propagació de l\'ombra de la capsa',
'box-shadow-color': 'Color de l\'ombra de la capsa',
'box-shadow-type': 'Tipus de l\'ombra de la capsa',
background: 'Fons',
'background-image': 'Imatge de fons',
'background-repeat': 'Repetir fons',
'background-position': 'Posició del fons',
'background-attachment': 'Desplaçament del fons',
'background-size': 'Tamany del fons',
transition: 'Transició',
'transition-property': 'Tipus de transició',
'transition-duration': 'Temps de transició',
'transition-timing-function': 'Funció de temps de la transición',
perspective: 'Perspectiva',
transform: 'Transformació',
'transform-rotate-x': 'Rotació horitzontal',
'transform-rotate-y': 'Rotació vertical',
'transform-rotate-z': 'Rotació profunditat',
'transform-scale-x': 'Escalar horitzontalment',
'transform-scale-y': 'Escalar verticalment',
'transform-scale-z': 'Escalar profunditat',
'flex-direction': 'Direcció flex',
'flex-wrap': 'Distribució flex',
'justify-content': 'Justificar contingut',
'align-items': 'Alinear elements',
'align-content': 'Alinear contingut',
order: 'Ordre',
'flex-basis': 'Base flex',
'flex-grow': 'Creixement flex',
'flex-shrink': 'Contracció flex',
'align-self': 'Alineació pròpia',
'background-color': 'Color de fons'
}
},
traitManager: {
empty: 'Escull un element abans d\'usar l\'Administrador de característiques',
label: 'Configuració de components',
traits: {
// The core library generates the name by their `name` property
labels: {
id: 'Identificador',
alt: 'Títol alternatiu',
title: 'Títol',
href: 'Enllaç'
},
// In a simple trait, like text input, these are used on input attributes
attributes: {
id: traitInputAttr,
alt: traitInputAttr,
title: traitInputAttr,
href: { placeholder: 'ex. https://google.com' }
},
// In a trait like select, these are used to translate option names
options: {
target: {
false: 'Mateixa pestanya/finestra',
_blank: 'Nova pestanya/finestra'
}
}
}
}
};
Loading…
Cancel
Save