Skip to content

Conversation

@diogorodrigues03
Copy link

Fixes #1585

Added missing DataUnit_* and TimeUnit_* resource keys to Resources.pt.resx and Resources.pt-BR.resx.
Changes:

  • Added missing keys to Resources.pt.resx and Resources.pt-BR.resx with Portuguese translations.
  • Added/Updated unit tests in src/Humanizer.Tests/Localisation/pt/ and src/Humanizer.Tests/Localisation/pt-BR/ covering ByteSizeExtensions and TimeUnitToSymbol.

Verified:

  • Build passes
  • Unit tests pass

Copilot AI review requested due to automatic review settings January 15, 2026 13:14
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds missing localization resources for Portuguese (pt) and Brazilian Portuguese (pt-BR) to fix issue #1585. The changes add DataUnit and TimeUnit translation keys that were previously missing, enabling proper localization of byte sizes and time unit symbols.

Changes:

  • Added DataUnit resource keys (Bit, Byte, Kilobyte, Megabyte, Gigabyte, Terabyte and their symbols) to Portuguese resource files
  • Added TimeUnit resource keys (Millisecond, Second, Minute, Hour, Day, Week, Month, Year) to Portuguese resource files
  • Added comprehensive xUnit tests for both locales covering ByteSizeExtensions and TimeUnitToSymbol functionality

Reviewed changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated no comments.

Show a summary per file
File Description
src/Humanizer/Properties/Resources.pt.resx Added DataUnit and TimeUnit resource entries with Portuguese translations and helpful comments
src/Humanizer/Properties/Resources.pt-BR.resx Added DataUnit and TimeUnit resource entries with Brazilian Portuguese translations and helpful comments
src/Humanizer.Tests/Localisation/pt/TimeUnitToSymbolTests.cs New test file validating TimeUnit symbol translations for pt culture
src/Humanizer.Tests/Localisation/pt/Bytes/ByteSizeExtensionsTests.cs New test file validating byte size humanization for pt culture
src/Humanizer.Tests/Localisation/pt-BR/TimeUnitToSymbolTests.cs New test file validating TimeUnit symbol translations for pt-BR culture
src/Humanizer.Tests/Localisation/pt-BR/Bytes/ByteSizeExtensionsTests.cs New test file validating byte size humanization for pt-BR culture

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.

Fill in missing translations for all languages in resource files

1 participant