Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions javascripts/discourse/components/search-banner.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import Component from "@glimmer/component";
import { action } from "@ember/object";
import { service } from "@ember/service";
import { defaultHomepage } from "discourse/lib/utilities";
import I18n from "discourse-i18n";
import { i18n } from "discourse-i18n";

export default class SearchBanner extends Component {
@service router;
Expand Down Expand Up @@ -46,7 +46,7 @@ export default class SearchBanner extends Component {
}

get buttonText() {
const buttonText = I18n.t(themePrefix("search_banner.search_button_text"));
const buttonText = i18n(themePrefix("search_banner.search_button_text"));
// this is required for when the English (US) locale is empty
// and the site locale is set to another language
// otherwise the English (US) fallback key is rendered as the button text
Expand Down
13 changes: 7 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,15 +1,16 @@
{
"private": true,
"devDependencies": {
"@discourse/lint-configs": "2.2.2",
"ember-template-lint": "6.0.0",
"eslint": "9.15.0",
"@discourse/lint-configs": "2.4.0",
"ember-template-lint": "6.1.0",
"eslint": "9.19.0",
"prettier": "2.8.8"
},
"engines": {
"node": ">= 18",
"node": ">= 22",
"npm": "please-use-pnpm",
"yarn": "please-use-pnpm",
"pnpm": ">= 9"
}
"pnpm": "9.x"
},
"packageManager": "[email protected]"
}
Loading