DEV: Bump dependencies and fix linting (#77)

This commit is contained in:
David Taylor 2025-02-06 17:49:46 +00:00 committed by GitHub
parent 252d5b0618
commit a26d98258e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 745 additions and 589 deletions

View File

@ -2,7 +2,7 @@ import Component from "@glimmer/component";
import { action } from "@ember/object"; import { action } from "@ember/object";
import { service } from "@ember/service"; import { service } from "@ember/service";
import { defaultHomepage } from "discourse/lib/utilities"; import { defaultHomepage } from "discourse/lib/utilities";
import I18n from "discourse-i18n"; import { i18n } from "discourse-i18n";
export default class SearchBanner extends Component { export default class SearchBanner extends Component {
@service router; @service router;
@ -46,7 +46,7 @@ export default class SearchBanner extends Component {
} }
get buttonText() { 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 // this is required for when the English (US) locale is empty
// and the site locale is set to another language // and the site locale is set to another language
// otherwise the English (US) fallback key is rendered as the button text // otherwise the English (US) fallback key is rendered as the button text

View File

@ -1,15 +1,16 @@
{ {
"private": true, "private": true,
"devDependencies": { "devDependencies": {
"@discourse/lint-configs": "2.2.2", "@discourse/lint-configs": "2.4.0",
"ember-template-lint": "6.0.0", "ember-template-lint": "6.1.0",
"eslint": "9.15.0", "eslint": "9.19.0",
"prettier": "2.8.8" "prettier": "2.8.8"
}, },
"engines": { "engines": {
"node": ">= 18", "node": ">= 22",
"npm": "please-use-pnpm", "npm": "please-use-pnpm",
"yarn": "please-use-pnpm", "yarn": "please-use-pnpm",
"pnpm": ">= 9" "pnpm": "9.x"
} },
"packageManager": "pnpm@9.15.5"
} }

File diff suppressed because it is too large Load Diff