AdGuardHome icon indicating copy to clipboard operation
AdGuardHome copied to clipboard

client_v2: filter update interval resets to 24h; modal labels don't follow language switch

Open hoang-rio opened this issue 4 months ago • 3 comments

Environment

  • AdGuard Home client_v2 (SolidJS migration)
  • Any browser

Description

Two bugs in the new client_v2 frontend:

  1. Filter update interval resets to 24h. In Settings → Filters, toggling the "Enabled" switch and saving an interval (e.g. 1 hour) works, but the interval silently returns to 24 hours on the next page load / config update. The mount effect in Settings/FiltersConfig posts setFiltersConfig with the default interval before the current filtering status has loaded, overwriting the saved value on the backend.

  2. Interval radio labels stay in English after switching language. With the UI language set to Vietnamese (or any non-English locale), the filter update modal's interval radios render English labels ("Disabled", "Every hour", …) while the rest of the dialog is translated. The radio options are built once at module load with the initial locale instead of being re-resolved per current language.

Steps to reproduce

  1. Open Settings → Filters, enable filtering, set update interval to 1 hour, save.
  2. Reload the page → interval shows 24 hours again.
  3. Switch UI language to Vietnamese, open the filter update modal → radio labels remain English.

Expected behavior

  1. The saved filter update interval persists.
  2. Modal radio labels follow the current UI language.

hoang-rio avatar Aug 05 '26 07:08 hoang-rio

Hello! Thank you for reporting this issue.

  1. The developers will look into this.
  2. Not all translations for client_v2 are ready yet, so this is normal.

sofvaskina avatar Aug 06 '26 14:08 sofvaskina

  1. It's not translate problem. These text already translated, it's code isssue

hoang-rio avatar Aug 06 '26 14:08 hoang-rio

Indeed, both bugs have been confirmed. Thank you very much for your attention to detail. Here are your changes to the master: https://github.com/AdguardTeam/AdGuardHome/commit/02ab180f5aa031307b5d047e466e919cac823525

sofvaskina avatar Aug 28 '26 14:08 sofvaskina