Weight Unit Preference #7703

Closed
opened 2025-12-29 20:27:15 +01:00 by adam · 7 comments
Owner

Originally created by @danner26 on GitHub (Mar 1, 2023).

NetBox version

v3.4.5

Feature type

Data model extension

Proposed functionality

When importing a device type with a weight of KG it would be nice to see values displayed in the frontend in LBs rather than KGs. My suggestion is to add a pre-user preference which will let you specify whether you prefer metric or imperial measurements. Once the preferred unit of measurement is selected by a user, it should be translated within the user interface as applicable.

By default I suggest that it displays the data as-is in the database.

Use case

Some vendors list items in LBs, others in KGs as well as others in both. The devicetype-library is a mix of KG and LB depending on who creates the files. Being in America myself, we prefer pounds whereas someone in Germany might prefer kilograms. It would be helpful to have these automatically translated in the UI as a UX improvement

Database changes

No response

External dependencies

No response

Originally created by @danner26 on GitHub (Mar 1, 2023). ### NetBox version v3.4.5 ### Feature type Data model extension ### Proposed functionality When importing a device type with a weight of KG it would be nice to see values displayed in the frontend in LBs rather than KGs. My suggestion is to add a pre-user preference which will let you specify whether you prefer metric or imperial measurements. Once the preferred unit of measurement is selected by a user, it should be translated within the user interface as applicable. By default I suggest that it displays the data as-is in the database. ### Use case Some vendors list items in LBs, others in KGs as well as others in both. The devicetype-library is a mix of KG and LB depending on who creates the files. Being in America myself, we prefer pounds whereas someone in Germany might prefer kilograms. It would be helpful to have these automatically translated in the UI as a UX improvement ### Database changes _No response_ ### External dependencies _No response_
adam added the type: featurestatus: needs ownerpending closure labels 2025-12-29 20:27:15 +01:00
adam closed this issue 2025-12-29 20:27:15 +01:00
Author
Owner

@jeremystretch commented on GitHub (May 4, 2023):

This might actually tie into our higher-level efforts to support localization, if it can be inferred from the user's locale. However there may also be a benefit to providing a discrete control for it.

@jeremystretch commented on GitHub (May 4, 2023): This might actually tie into our higher-level efforts to support localization, if it can be inferred from the user's locale. However there may also be a benefit to providing a discrete control for it.
Author
Owner

@github-actions[bot] commented on GitHub (Aug 3, 2023):

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. NetBox is governed by a small group of core maintainers which means not all opened issues may receive direct feedback. Do not attempt to circumvent this process by "bumping" the issue; doing so will result in its immediate closure and you may be barred from participating in any future discussions. Please see our contributing guide.

@github-actions[bot] commented on GitHub (Aug 3, 2023): This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. NetBox is governed by a small group of core maintainers which means not all opened issues may receive direct feedback. **Do not** attempt to circumvent this process by "bumping" the issue; doing so will result in its immediate closure and you may be barred from participating in any future discussions. Please see our [contributing guide](https://github.com/netbox-community/netbox/blob/develop/CONTRIBUTING.md).
Author
Owner

@danner26 commented on GitHub (Aug 15, 2023):

Hey Jeremy, just circuling back around on this. Is this something we want to tie into the localization effort?

@danner26 commented on GitHub (Aug 15, 2023): Hey Jeremy, just circuling back around on this. Is this something we want to tie into the localization effort?
Author
Owner

@jeremystretch commented on GitHub (Aug 15, 2023):

This proposal doesn't seem to have generated any interest, so I'm not sure it's worth pursuing at this point. It might be something to reconsider once we've formally introduced localization support.

@jeremystretch commented on GitHub (Aug 15, 2023): This proposal doesn't seem to have generated any interest, so I'm not sure it's worth pursuing at this point. It might be something to reconsider once we've formally introduced localization support.
Author
Owner

@github-actions[bot] commented on GitHub (Nov 14, 2023):

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. NetBox is governed by a small group of core maintainers which means not all opened issues may receive direct feedback. Do not attempt to circumvent this process by "bumping" the issue; doing so will result in its immediate closure and you may be barred from participating in any future discussions. Please see our contributing guide.

@github-actions[bot] commented on GitHub (Nov 14, 2023): This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. NetBox is governed by a small group of core maintainers which means not all opened issues may receive direct feedback. **Do not** attempt to circumvent this process by "bumping" the issue; doing so will result in its immediate closure and you may be barred from participating in any future discussions. Please see our [contributing guide](https://github.com/netbox-community/netbox/blob/develop/CONTRIBUTING.md).
Author
Owner

@danner26 commented on GitHub (Nov 20, 2023):

I agree once localization support is implemented this will fall in line with that effort

@danner26 commented on GitHub (Nov 20, 2023): I agree once localization support is implemented this will fall in line with that effort
Author
Owner

@jeremystretch commented on GitHub (Nov 21, 2023):

Let's wrap this into #13915, which proposes the ability to set user-preferred units for both length and weight measurements.

@jeremystretch commented on GitHub (Nov 21, 2023): Let's wrap this into #13915, which proposes the ability to set user-preferred units for both length and weight measurements.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#7703