Skip to content

Commit

Permalink
fix: [open-y-subprojects#72] Adds translation on the location views
Browse files Browse the repository at this point in the history
  • Loading branch information
andrebonon committed Apr 3, 2024
1 parent a135925 commit ae73350
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 3 deletions.
42 changes: 41 additions & 1 deletion modules/openy_map_lb/config/install/views.view.locations_lb.yml
Original file line number Diff line number Diff line change
Expand Up @@ -356,6 +356,46 @@ display:
operator: ''
operator_limit_selection: false
operator_list: { }
default_langcode:
id: default_langcode
table: node_field_data
field: default_langcode
relationship: none
group_type: group
admin_label: ''
entity_type: node
entity_field: default_langcode
plugin_id: boolean
operator: '='
value: '1'
group: 1
exposed: false
expose:
operator_id: ''
label: ''
description: ''
use_operator: false
operator: ''
operator_limit_selection: false
operator_list: { }
identifier: ''
required: false
remember: false
multiple: false
remember_roles:
authenticated: authenticated
is_grouped: false
group_info:
label: ''
description: ''
identifier: ''
optional: true
widget: select
multiple: false
remember: false
default_group: All
default_group_multiple: { }
group_items: { }
filter_groups:
operator: AND
groups:
Expand All @@ -380,14 +420,14 @@ display:
empty: false
content: '<h2 class="location-title h1">{{ type }}</h2>'
tokenize: true
rendering_language: '***LANGUAGE_language_interface***'
display_extenders: { }
block_description: 'Locations Branches'
block_category: 'Paragraph Blocks'
block_hide_empty: true
cache_metadata:
max-age: -1
contexts:
- 'languages:language_content'
- 'languages:language_interface'
- url
- 'user.node_grants:view'
Expand Down
4 changes: 2 additions & 2 deletions modules/openy_map_lb/templates/openy-map-lb.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<div class="form-group">
<label for="search_field">{{ 'ENTER ZIP CODE or address'|t }}</label>
<div class="input-group">
<input type="text" class="form-control" placeholder="Search by location" id="search_field" />
<input type="text" class="form-control" placeholder="{{ "Search by location"|t }}" id="search_field" />
<div class="input-group-append">
<button class="btn btn-primary" type="button" aria-label="{{ "Search"|t }}"><i class="fas fa-search"></i></button>
</div>
Expand Down Expand Up @@ -40,7 +40,7 @@
</div>
<div class="col-md-4 col-lg-4 filter-item text-center text-md-right mb-2">
<a class="btn btn-outline-light amenities-filter-control collapsed" data-toggle="collapse" href="#amenities-filter" role="button" aria-expanded="false" aria-controls="amenities-filter" >
{{ 'Filter by amenities' }} <i class="fas fa-plus"></i>
{{ 'Filter by amenities'|t }} <i class="fas fa-plus"></i>
</a>
</div>
</div>
Expand Down

0 comments on commit ae73350

Please sign in to comment.