Skip to content

Conversation

@MatiasOS
Copy link
Member

@MatiasOS MatiasOS commented Feb 7, 2026

Description

Internationalizes the Gas Tracker page using the existing network namespace and cleans up i18n resources. This removes unused locale keys, syncs missing Spanish strings to match English, and deletes the unused errors namespace wiring and locale files.

Related Issue

N/A

Type of Change

  • Bug fix
  • New feature
  • Documentation update
  • Refactoring
  • Performance improvement
  • Other (please describe): i18n updates/cleanup

Changes Made

  • Wired GasTracker UI strings to gasTracker.* translations in network.json and translated transaction rows.
  • Removed the unused errors namespace and locale files; updated i18n resources/types accordingly.
  • Pruned unused i18n keys and synced missing Spanish strings to match English for current usage.

Screenshots (if applicable)

N/A

Checklist

  • I have run npm run format:fix and npm run lint:fix
  • I have run npm run typecheck with no errors
  • I have run tests with npm run test:run
  • I have tested my changes locally
  • I have updated documentation if needed
  • My code follows the project's architecture patterns

Additional Notes

Typecheck run: bun run typecheck.

- 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
@MatiasOS MatiasOS requested a review from AugustoL February 7, 2026 17:21
@github-actions
Copy link

github-actions bot commented Feb 7, 2026

🚀 Preview: https://pr-209--openscan.netlify.app
📝 Commit: 68b235e40e0fac590e6278909c081a4b7969ac6b

@MatiasOS MatiasOS marked this pull request as ready for review February 8, 2026 14:43
@AugustoL AugustoL merged commit b5202bd into openscan-explorer:release/v1.2.0-a Feb 9, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants