Skip to content

Replace hardcoded Chinese string in useStorageInfo with i18n key #12

@kanweiwei

Description

@kanweiwei

web/src/hooks/useStorageInfo.ts line 153 has a hardcoded Chinese string:

cacheSizeFormatted: workspace.cacheSize ? formatBytes(workspace.cacheSize) : '计算中...'

The string '计算中...' should use an i18n translation key instead.

What to do:

  1. Read web/src/hooks/useStorageInfo.ts around line 153
  2. Find or add an appropriate i18n key (e.g. storage.calculating or reuse common.loading)
  3. The hook doesn't use useT() — you may need to import from the i18n package directly, or restructure slightly
  4. Add the key to all locale files in packages/i18n/src/locales/ (en-US, zh-CN, ja-JP, ko-KR)

Skills needed: TypeScript, basic i18n concepts

Estimated time: 15 minutes

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions