Skip to content

Conversation

@konard
Copy link
Member

@konard konard commented Sep 14, 2025

Summary

This PR implements internationalization (i18n) support for the ConsoleHelpers class to resolve issue #6. The implementation includes:

  • Resource Files: Added Resources.resx (English) and Resources.ru.resx (Russian) with localized strings
  • Code Updates: Modified ConsoleHelpers.cs to use resource strings instead of hardcoded English text
  • Strongly-Typed Access: Created Resources.Designer.cs for type-safe resource access
  • Unit Tests: Added comprehensive tests to verify internationalization functionality
  • Project Configuration: Updated .csproj file to properly build and embed resource files
  • Version Bump: Incremented version to 0.6.0 to reflect the new feature

Changes Made

Files Modified:

  • csharp/Platform.IO/ConsoleHelpers.cs - Replaced hardcoded strings with resource strings
  • csharp/Platform.IO/Platform.IO.csproj - Added resource file configuration and version update

Files Added:

  • csharp/Platform.IO/Resources.resx - English resource strings
  • csharp/Platform.IO/Resources.ru.resx - Russian resource strings
  • csharp/Platform.IO/Resources.Designer.cs - Generated strongly-typed resource accessor
  • csharp/Platform.IO.Tests/ConsoleHelpersTests.cs - Unit tests for internationalization

Test Plan

  • Build solution successfully with no errors
  • All existing tests continue to pass
  • New internationalization tests pass
  • Resource strings load correctly for different cultures
  • ConsoleHelpers methods display localized messages based on current UI culture

🤖 Generated with Claude Code


Resolves #6

Adding CLAUDE.md with task information for AI processing.
This file will be removed when the task is complete.

Issue: #6
@konard konard self-assigned this Sep 14, 2025
- Add resource files (Resources.resx, Resources.ru.resx) with localized strings
- Update ConsoleHelpers.cs to use resource strings instead of hardcoded English text
- Create Resources.Designer.cs for strongly-typed resource access
- Add unit tests to verify internationalization functionality
- Update project file to include resource files in build
- Increment version to 0.6.0

Fixes #6

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
@konard konard changed the title [WIP] Internationalization of messages Add internationalization support for ConsoleHelpers messages Sep 14, 2025
@konard konard marked this pull request as ready for review September 14, 2025 10:22
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.

Internationalization of messages

2 participants