File tree Expand file tree Collapse file tree 3 files changed +746
-590
lines changed
javascripts/discourse/components Expand file tree Collapse file tree 3 files changed +746
-590
lines changed Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ import Component from "@glimmer/component";
22import { action } from "@ember/object" ;
33import { service } from "@ember/service" ;
44import { defaultHomepage } from "discourse/lib/utilities" ;
5- import I18n from "discourse-i18n" ;
5+ import { i18n } from "discourse-i18n" ;
66
77export default class SearchBanner extends Component {
88 @service router ;
@@ -46,7 +46,7 @@ export default class SearchBanner extends Component {
4646 }
4747
4848 get buttonText ( ) {
49- const buttonText = I18n . t ( themePrefix ( "search_banner.search_button_text" ) ) ;
49+ const buttonText = i18n ( themePrefix ( "search_banner.search_button_text" ) ) ;
5050 // this is required for when the English (US) locale is empty
5151 // and the site locale is set to another language
5252 // otherwise the English (US) fallback key is rendered as the button text
Original file line number Diff line number Diff line change 11{
22 "private" : true ,
33 "devDependencies" : {
4- "@discourse/lint-configs" : " 2.2.2 " ,
5- "ember-template-lint" : " 6.0 .0" ,
6- "eslint" : " 9.15 .0" ,
4+ "@discourse/lint-configs" : " 2.4.0 " ,
5+ "ember-template-lint" : " 6.1 .0" ,
6+ "eslint" : " 9.19 .0" ,
77 "prettier" : " 2.8.8"
88 },
99 "engines" : {
10- "node" : " >= 18 " ,
10+ "node" : " >= 22 " ,
1111 "npm" : " please-use-pnpm" ,
1212 "yarn" : " please-use-pnpm" ,
13- "pnpm" : " >= 9"
14- }
13+ "pnpm" : " 9.x"
14+ },
15+ "packageManager" :
" [email protected] " 1516}
You can’t perform that action at this time.
0 commit comments