Skip to content

Commit

Permalink
Merge 8bb7585 into fc6c2e2
Browse files Browse the repository at this point in the history
  • Loading branch information
klzns committed May 14, 2019
2 parents fc6c2e2 + 8bb7585 commit 494cf52
Show file tree
Hide file tree
Showing 11 changed files with 105 additions and 96 deletions.
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,15 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.

## [Unreleased]

### Fixed

- Translation file names.
- English translation.

### Added

- Scope messages.

## [1.9.1] - 2019-03-01

### Changed
Expand Down
38 changes: 19 additions & 19 deletions messages/context.json
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
{
"editor.productKitList.title": "editor.productKitList.title",
"editor.productKitList.allowSwap": "editor.productKitList.allowSwap",
"editor.productKitList.allowRemoval": "editor.productKitList.allowRemoval",
"editor.productKitList.showArrows": "editor.productKitList.showArrows",
"editor.productKitList.nextArrow": "editor.productKitList.nextArrow",
"editor.productKitList.prevArrow": "editor.productKitList.prevArrow",
"editor.productKitList.showDots": "editor.productKitList.showDots",
"editor.productKitList.dot": "editor.productKitList.dot",
"editor.productKitList.description": "editor.productKitList.description",
"editor.productKitList.showListPrice": "editor.productKitList.showListPrice",
"editor.productKitList.showLabels": "editor.productKitList.showLabels",
"editor.productKitList.showInstallments": "editor.productKitList.showInstallments",
"editor.productKitList.showBadge": "editor.productKitList.showBadge",
"editor.productKitList.badgeText": "editor.productKitList.badgeText",
"productKitList.takeAll": "productKitList.takeAll",
"productKitList.mountYourKit": "productKitList.mountYourKit",
"productKitList.swapItem": "productKitList.swapItem",
"productKitList.buyKit": "productKitList.buyKit"
}
"admin/editor.productKitList.title": "admin/editor.productKitList.title",
"admin/editor.productKitList.allowSwap": "admin/editor.productKitList.allowSwap",
"admin/editor.productKitList.allowRemoval": "admin/editor.productKitList.allowRemoval",
"admin/editor.productKitList.showArrows": "admin/editor.productKitList.showArrows",
"admin/editor.productKitList.nextArrow": "admin/editor.productKitList.nextArrow",
"admin/editor.productKitList.prevArrow": "admin/editor.productKitList.prevArrow",
"admin/editor.productKitList.showDots": "admin/editor.productKitList.showDots",
"admin/editor.productKitList.dot": "admin/editor.productKitList.dot",
"admin/editor.productKitList.description": "admin/editor.productKitList.description",
"admin/editor.productKitList.showListPrice": "admin/editor.productKitList.showListPrice",
"admin/editor.productKitList.showLabels": "admin/editor.productKitList.showLabels",
"admin/editor.productKitList.showInstallments": "admin/editor.productKitList.showInstallments",
"admin/editor.productKitList.showBadge": "admin/editor.productKitList.showBadge",
"admin/editor.productKitList.badgeText": "admin/editor.productKitList.badgeText",
"store/productKitList.takeAll": "store/productKitList.takeAll",
"store/productKitList.buildYourBundle": "store/productKitList.buildYourBundle",
"store/productKitList.swapItem": "store/productKitList.swapItem",
"store/productKitList.buyKit": "store/productKitList.buyKit"
}
20 changes: 0 additions & 20 deletions messages/en-US.json

This file was deleted.

20 changes: 20 additions & 0 deletions messages/en.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"admin/editor.productKitList.title": "Product Kit",
"admin/editor.productKitList.description": "The Product Kit component display a horizontal list of products to buy together",
"admin/editor.productKitList.allowSwap": "Allow Swap",
"admin/editor.productKitList.allowRemoval": "Allow Removal",
"admin/editor.productKitList.showArrows": "Show Arrows",
"admin/editor.productKitList.nextArrow": "Next Arrow",
"admin/editor.productKitList.prevArrow": "Prev Arrow",
"admin/editor.productKitList.showDots": "Show Dots",
"admin/editor.productKitList.dot": "Dot",
"admin/editor.productKitList.showListPrice": "Show list price",
"admin/editor.productKitList.showLabels": "Show labels",
"admin/editor.productKitList.showInstallments": "Show installments",
"admin/editor.productKitList.showBadge": "Show badge",
"admin/editor.productKitList.badgeText": "Badge Text",
"store/productKitList.takeAll": "Take all {numberOfItems} products",
"store/productKitList.buildYourBundle": "Build your bundle",
"store/productKitList.swapItem": "Swap",
"store/productKitList.buyKit": "Buy Kit"
}
20 changes: 0 additions & 20 deletions messages/es-AR.json

This file was deleted.

20 changes: 20 additions & 0 deletions messages/es.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"admin/editor.productKitList.title": "Kit de Productos",
"admin/editor.productKitList.allowSwap": "Pemitir Permuta",
"admin/editor.productKitList.allowRemoval": "Pemitir Remoción",
"admin/editor.productKitList.showArrows": "Mostrar Flechas",
"admin/editor.productKitList.nextArrow": "Flecha Siguiente",
"admin/editor.productKitList.prevArrow": "Flecha Anterior",
"admin/editor.productKitList.showDots": "Mostrar Puntos",
"admin/editor.productKitList.dot": "Punto",
"admin/editor.productKitList.description": "El component de kit de productos muestra una lista horizontal de productos que pertenecen al kit",
"admin/editor.productKitList.showListPrice": "Mostrar lista de precios",
"admin/editor.productKitList.showLabels": "Mostrar las etiquetas",
"admin/editor.productKitList.showInstallments": "Mostrar parcelas",
"admin/editor.productKitList.showBadge": "Mostrar badge",
"admin/editor.productKitList.badgeText": "Texto de badge",
"store/productKitList.takeAll": "Ileve los {numberOfItems} productos",
"store/productKitList.buildYourBundle": "Monte su Kit",
"store/productKitList.swapItem": "Intercambiar",
"store/productKitList.buyKit": "Comprar Kit"
}
20 changes: 0 additions & 20 deletions messages/pt-BR.json

This file was deleted.

20 changes: 20 additions & 0 deletions messages/pt.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"admin/editor.productKitList.title": "Kit de Produtos",
"admin/editor.productKitList.description": "O componente de kit de produtos exibe uma lista horizontal de produtos que pertencem ao kit",
"admin/editor.productKitList.allowSwap": "Permitir Troca",
"admin/editor.productKitList.allowRemoval": "Permitir Remoção",
"admin/editor.productKitList.showArrows": "Mostrar Setas",
"admin/editor.productKitList.nextArrow": "Seta Direita",
"admin/editor.productKitList.prevArrow": "Seta Esquerda",
"admin/editor.productKitList.showDots": "Mostrar Pontos",
"admin/editor.productKitList.dot": "Ponto",
"admin/editor.productKitList.showListPrice": "Mostrar lista de preços",
"admin/editor.productKitList.showLabels": "Mostrar rótulos",
"admin/editor.productKitList.showInstallments": "Mostrar parcelamentos",
"admin/editor.productKitList.showBadge": "Mostrar badge",
"admin/editor.productKitList.badgeText": "Texto da badge",
"store/productKitList.takeAll": "Leve os {numberOfItems} produtos",
"store/productKitList.buildYourBundle": "Monte seu Kit",
"store/productKitList.swapItem": "Trocar",
"store/productKitList.buyKit": "Comprar Kit"
}
4 changes: 2 additions & 2 deletions react/components/ProductKitDetails.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ export default class ProductKitDetails extends Component {
<div className={`${styles.listDetails} flex flex-column items-center justify-center tc ph7`}>
<div className="t-body c-muted-1 mv3">
<FormattedMessage
id="productKitList.takeAll"
id="store/productKitList.takeAll"
values={{ numberOfItems: items.length }}
/>
</div>
Expand All @@ -83,7 +83,7 @@ export default class ProductKitDetails extends Component {
/>
</div>
<BuyButton skuItems={this.getSkuItems(items)}>
<FormattedMessage id="productKitList.buyKit" />
<FormattedMessage id="store/productKitList.buyKit" />
</BuyButton>
</div>
)
Expand Down
2 changes: 1 addition & 1 deletion react/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ export default class ProductKit extends Component {
return (
<Container className={`${styles.listContainer} dn db-ns flex-column`}>
<div className="t-heading-3 c-muted-1 fw3 mv4 flex items-center justify-center">
<FormattedMessage id="productKitList.mountYourKit" />
<FormattedMessage id="store/productKitList.buildYourBundle" />
</div>
<Slider
leftArrowClasses="z-2"
Expand Down
28 changes: 14 additions & 14 deletions react/schema/index.js
Original file line number Diff line number Diff line change
@@ -1,30 +1,30 @@
export const schema = ({ showArrows, showDots, showBadge }) => {
return {
title: 'editor.productKitList.title',
description: 'editor.productKitList.description',
title: 'admin/editor.productKitList.title',
description: 'admin/editor.productKitList.description',
type: 'object',
properties: {
allowSwap: {
type: 'boolean',
title: 'editor.productKitList.allowSwap',
title: 'admin/editor.productKitList.allowSwap',
default: true,
isLayout: false,
},
allowRemoval: {
type: 'boolean',
title: 'editor.productKitList.allowRemoval',
title: 'admin/editor.productKitList.allowRemoval',
default: true,
isLayout: false,
},
showArrows: {
type: 'boolean',
title: 'editor.productKitList.showArrows',
title: 'admin/editor.productKitList.showArrows',
default: true,
isLayout: true,
},
nextArrow: showArrows ? {
type: 'string',
title: 'editor.productKitList.nextArrow',
title: 'admin/editor.productKitList.nextArrow',
default: '',
isLayout: false,
widget: {
Expand All @@ -33,7 +33,7 @@ export const schema = ({ showArrows, showDots, showBadge }) => {
} : {},
prevArrow: showArrows ? {
type: 'string',
title: 'editor.productKitList.prevArrow',
title: 'admin/editor.productKitList.prevArrow',
default: '',
isLayout: false,
widget: {
Expand All @@ -42,13 +42,13 @@ export const schema = ({ showArrows, showDots, showBadge }) => {
} : {},
showDots: {
type: 'boolean',
title: 'editor.productKitList.showDots',
title: 'admin/editor.productKitList.showDots',
default: true,
isLayout: true,
},
dots: showDots ? {
type: 'string',
title: 'editor.productKitList.dot',
title: 'admin/editor.productKitList.dot',
default: '',
isLayout: false,
widget: {
Expand All @@ -57,32 +57,32 @@ export const schema = ({ showArrows, showDots, showBadge }) => {
} : {},
showListPrice: {
type: 'boolean',
title: 'editor.productKitList.showListPrice',
title: 'admin/editor.productKitList.showListPrice',
default: true,
isLayout: true,
},
showLabels: {
type: 'boolean',
title: 'editor.productKitList.showLabels',
title: 'admin/editor.productKitList.showLabels',
default: false,
isLayout: true,
},
showInstallments: {
type: 'boolean',
title: 'editor.productKitList.showInstallments',
title: 'admin/editor.productKitList.showInstallments',
default: false,
isLayout: true,
},
showBadge: {
type: 'boolean',
title: 'editor.productKitList.showBadge',
title: 'admin/editor.productKitList.showBadge',
default: false,
isLayout: true,
},
badgeText: showBadge
? {
type: 'string',
title: 'editor.productKitList.badgeText',
title: 'admin/editor.productKitList.badgeText',
isLayout: false,
}
: {},
Expand Down

0 comments on commit 494cf52

Please sign in to comment.