fix: chain providers, i18n, dedup isWebRuntime, and a11y label

Conditionally build `chainProviders` so empty `urls` arrays are never passed downstream. Replace hardcoded "Chain ticker: " with `capitalize(t('chain_ticker'))` and add the translation key to all locales. Remove the duplicate `isWebRuntime` in `media-hosting-settings.tsx` in favor of the shared implementation in `show-upload-controls`. Add `aria-label` to the directory codes input in `TopbarEditModal`.
This commit is contained in:
plebeius
2026-02-20 16:23:09 +08:00
parent 291dbf125d
commit 15d608764b
39 changed files with 79 additions and 50 deletions
+2 -1
View File
@@ -279,5 +279,6 @@
"media_hosting_all_providers_failed_guidance": "అన్ని అప్‌లోడ్ ప్రొవైడర్లు విఫలమయ్యాయి. మళ్ళీ ప్రయత్నించండి లేదా లింక్‌ను మాన్యువల్‌గా అతికించండి.",
"upload_not_supported_web_before_link": "సాంకేతిక పరిమితుల కారణంగా (CORS) మీ బ్రౌజర్ మీడియా అప్‌లోడ్‌ను మద్దతు ఇవ్వదు. ఇది 5chan Android యాప్ మరియు Mac/Linux/Windows డెస్క్‌టాప్ యాప్‌లో మద్దతు ఇస్తుంది.",
"upload_not_supported_web_link_text": "అధికారిక రిలీజ్ పేజీ నుండి డౌన్‌లోడ్ చేయండి",
"board_subscriptions": "బోర్డ్ సబ్‌స్క్రిప్షన్లు"
"board_subscriptions": "బోర్డ్ సబ్‌స్క్రిప్షన్లు",
"chain_ticker": "చైన్ టికర్"
}