Skip to content

Commit

Permalink
uses @phila/pinboard commit that adds translation capability to the d…
Browse files Browse the repository at this point in the history
…efault card
  • Loading branch information
ajrothwell committed May 3, 2024
1 parent f38304e commit 14f53bf
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 11 deletions.
2 changes: 1 addition & 1 deletion src/i18n/en-us.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export default {
subtitle: 'Find services for immigrants in Philadelphia',
noResults: 'We\'re sorry, there are no results for that search. Adjust the filters you\'ve selected and try again.',
searchPlaceholders: {
all: 'Search by address',
all: 'Search by address or language spoken',
},
},
introPage: {
Expand Down
2 changes: 1 addition & 1 deletion src/i18n/es.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export default {
subtitle: 'Spanish Find services for immigrants in Philadelphia',
noResults: 'We\'re sorry, there are no results for that search. Adjust the filters you\'ve selected and try again.',
searchPlaceholders: {
all: 'Search by address',
all: 'Spanish Search by address or language spoken',
},
},
introPage: {
Expand Down
12 changes: 3 additions & 9 deletions src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,22 +58,16 @@ pinboard({
retractableRefine: false,
dropdownRefine: false,
searchBar: {
placeholder: 'Search by address or keyword',
searchTypes: [
'address',
'keyword',
],
labelText: {
address: 'Search by address',
keyword: 'Search by keyword',
},
placeholderText: {
address: 'Search by address',
keyword: 'Search by keyword',
},
searchDistance: 3,
fuseThreshold: 0.4,
},
locationInfo: {
siteName: 'organization_name',
tagsPhrase: 'languagesSpoken',
},
customComps,
refine: {
Expand Down

0 comments on commit 14f53bf

Please sign in to comment.