I18n fixes#209
Merged
AugustoL merged 10 commits intoopenscan-explorer:release/v1.2.0-afrom Feb 9, 2026
Merged
Conversation
- Create src/utils/logger.ts with debug, info, warn, error methods - Environment-based filtering (dev: all, staging: info+, prod: warn+) - Add unit tests for all log levels and environments - Export logger from utils/index.ts - Add pure_funcs to vite.config.ts to strip console.log in production Closes openscan-explorer#186
Replace console.log/warn/error with logger methods in utility files: - artifactsStorage.ts - devArtifacts.ts - erc1155Metadata.ts - erc721Metadata.ts - rpcStorage.ts - web3Security.ts
Replace console.log/warn/error with logger methods in: - MetadataService.ts - AddressTransactionSearch.ts - All network adapters (EVM, Arbitrum, Optimism, Base, Polygon, BNB, Bitcoin) - NetworkAdapter.ts
Replace console.log/warn/error with logger methods in: - useENS.ts - useProviderSelection.ts - useSelectedData.ts - useSourcify.ts - useZipJsonReader.tsx
Replace console.warn/error with logger methods in: - AppContext.tsx - SettingsContext.tsx
Replace console.log/warn/error with logger methods in: - ErrorBoundary.tsx - LazyComponents.tsx - NetworkBlockIndicator.tsx - Address pages and displays - Block/Transaction pages - Token detail pages - Bitcoin pages - Settings page - About page
Replace console.log with logger.debug in networks.ts
Add Logger Utility section to patterns.md with: - Usage examples - Log level guidelines - Environment filtering table - Build-time safety notes
|
🚀 Preview: https://pr-209--openscan.netlify.app |
AugustoL
approved these changes
Feb 9, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Internationalizes the Gas Tracker page using the existing
networknamespace and cleans up i18n resources. This removes unused locale keys, syncs missing Spanish strings to match English, and deletes the unusederrorsnamespace wiring and locale files.Related Issue
N/A
Type of Change
Changes Made
GasTrackerUI strings togasTracker.*translations innetwork.jsonand translated transaction rows.errorsnamespace and locale files; updated i18n resources/types accordingly.Screenshots (if applicable)
N/A
Checklist
npm run format:fixandnpm run lint:fixnpm run typecheckwith no errorsnpm run test:runAdditional Notes
Typecheck run:
bun run typecheck.