diff --git a/addon/components/search-input.hbs b/addon/components/search-input.hbs index 0590142..c5d7a82 100644 --- a/addon/components/search-input.hbs +++ b/addon/components/search-input.hbs @@ -6,7 +6,7 @@ type='search' value={{this.value}} oninput={{perform this.search value='target.value'}} - placeholder="Search the guides" + placeholder={{this.strSearchInputPlaceholder}} autocomplete="off" > @@ -24,7 +24,7 @@
- {{this.strSearchPlaceholder}} + {{this.strSearchResultsPlaceholder}}
diff --git a/addon/components/search-input.js b/addon/components/search-input.js index 85d84b2..3cc8d97 100644 --- a/addon/components/search-input.js +++ b/addon/components/search-input.js @@ -25,7 +25,8 @@ export default class SearchInputComponent extends Component { this.searchFunction = true; this.client = algoliasearch(algoliaId, algoliaKey); this.index = this.client.initIndex(indexName); - this.strSearchPlaceholder = config.guidemaker.texts.searchPlaceholder; + this.strSearchResultsPlaceholder = config.guidemaker.texts.searchResultsPlaceholder; + this.strSearchInputPlaceholder = config.guidemaker.texts.searchInputPlaceholder; } } diff --git a/tests/dummy/config/environment.js b/tests/dummy/config/environment.js index e12ed9b..9aa7921 100644 --- a/tests/dummy/config/environment.js +++ b/tests/dummy/config/environment.js @@ -38,7 +38,8 @@ module.exports = function (environment) { }, // Everything in texts could be handle with an actual intl tool in a later time texts: { - searchPlaceholder: 'Search results', + searchInputPlaceholder: 'Search the guides', + searchResultsPlaceholder: 'Search results', currentChapter: 'We\'ve finished covering', nextChapter: 'Next up:', }