Skip to content

Conversation

@j04chim
Copy link
Contributor

@j04chim j04chim commented Feb 9, 2026

Here are my proposed updates to the documentation for Number::toReadableSize(). I did not modify the Japanese version.

need to pass the boolean parameter to `Cake\I18n\Number::toReadableSize()` when
switching between decimal units and IEC units. If `$useIec` is defined as true,
IEC units will be employed; otherwise, decimal units will be used.

Copy link
Contributor

Choose a reason for hiding this comment

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

Could you add a little indication that notes when this feature was added? The docs are continues per major so this could be helpful.

Something like

::: info Added in version 5.4
My note here
:::

Copy link
Contributor

@josbeir josbeir left a comment

Choose a reason for hiding this comment

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

Could you also note this change in the migration guide ?

https://github.com/cakephp/docs/blob/5.next/docs/en/appendices/5-4-migration-guide.md


## Breaking Changes

- `Number::toReadableSize()` now calculates decimal units (KB, MB, GB and TB)
Copy link
Member

Choose a reason for hiding this comment

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

I thought we added the new way as BC flag. To opt in.

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.

3 participants