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

Add LocaleSwitcher #89

Closed
wants to merge 11 commits into from
Closed

Add LocaleSwitcher #89

wants to merge 11 commits into from

Conversation

thalytafabrine
Copy link
Member

@thalytafabrine thalytafabrine commented May 22, 2019

What is the purpose of this pull request?

Creation of the component LocaleSwitcher that allows the user to select the language of the store
This PR depends of these ones:
vtex-apps/store-components#453
vtex-apps/store-theme#140

How should this be manually tested?

Access this workspace

Screenshots or example usage

Captura de tela de 2019-05-22 13-34-23

Types of changes

  • Bug fix (a non-breaking change which fixes an issue)
  • New feature (a non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Requires change to documentation, which has been updated accordingly.

Creating LocaleSwitcher

Add CHANGELOG
@thalytafabrine thalytafabrine marked this pull request as ready for review May 23, 2019 17:34
@@ -6,6 +6,7 @@
"admin/editor.header.link.url": "admin/editor.header.link.url",
"admin/editor.header.show.searchbar.title": "admin/editor.header.show.searchbar.title",
"admin/editor.header.show.login.title": "admin/editor.header.show.login.title",
"admin/editor.header.show.localeswitcher.title": "admin/editor.header.show.localeswitcher.title",

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this appear on /admin? It's not working for me

CHANGELOG.md Outdated
@@ -6,6 +6,8 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).

## [Unreleased]
### Added
- Adds support for `localeSwitcher`.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
- Adds support for `localeSwitcher`.
- Support for `localeSwitcher`.

@@ -134,6 +138,12 @@ Header.schema = {
default: true,
isLayout: true,
},
showLocaleSwitcher: {
Copy link
Contributor

@GustavoMA GustavoMA May 23, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wasn't able to see this configuration in the storefront, can you take a look into that?

messages/es.json Outdated
@@ -5,6 +5,7 @@
"admin/editor.header.logo.image": "Imagen del logotipo",
"admin/editor.header.link.url": "Link del logotipo",
"admin/editor.header.show.searchbar.title": "Mostrar Busca",
"admin/editor.header.show.localeswitcher.title": "Mostrar alternador de localidade",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
"admin/editor.header.show.localeswitcher.title": "Mostrar alternador de localidade",
"admin/editor.header.show.localeswitcher.title": "Mostrar selector de idioma",

messages/pt.json Outdated
@@ -6,6 +6,7 @@
"admin/editor.header.link.url": "Link da Logo",
"admin/editor.header.show.searchbar.title": "Mostrar Busca",
"admin/editor.header.show.login.title": "Mostrar Login",
"admin/editor.header.show.localeswitcher.title": "Mostrar alternador de localidade",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
"admin/editor.header.show.localeswitcher.title": "Mostrar alternador de localidade",
"admin/editor.header.show.localeswitcher.title": "Mostrar seletor de idioma",

@@ -47,6 +48,7 @@
"minicart",
"login",
"search-bar",
"locale-switcher",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You should create an independent block for locale-switcher as well.

So it will work with the header-layout

@thalytafabrine thalytafabrine deleted the feature/locale-switcher branch May 28, 2019 17:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants