# App development - capabilities value formatting to local localization/formatting rules

**URL:** <https://community.homey.app/t/app-development-capabilities-value-formatting-to-local-localization-formatting-rules/96697>\
**Category:** Developers\
**Created:** [December 3, 2023, 7:26pm UTC](https://community.homey.app/t/app-development-capabilities-value-formatting-to-local-localization-formatting-rules/96697 "2023-12-03T19:26:52Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kim\_Kokholm](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/kim_kokholm/32/91519_2.png) [@Kim\_Kokholm](https://community.homey.app/u/Kim_Kokholm)\
**Post date:** [December 3, 2023, 7:26pm UTC](https://community.homey.app/t/app-development-capabilities-value-formatting-to-local-localization-formatting-rules/96697/1 "2023-12-03T19:26:52Z")

</div>

Hi all

I have a some capabilities for my devices, and I’m struggling with correct formatting of numbers.  
To be more specific, I’m looking for a way to apply formatting to large numbers.

VALUE (raw): 1000000.00 (example: 1 million with two decimals)  
English format: 1000000.00 - which is how it’s display in the devices info

For my localization, danish in this example - local formatting: 1.000.000,00 is way more readable.  
Thousand seperator: “.” (dot), and decimal seperator ‘,’ (comma)

Code:  
this.setCapabilityValue(“x\_capability”, inverterData.Power)

Does this community know a way to apply number formatting to numbers in Homey? I would like to support this for my app where values are displayed. I need the capability to still be number - so raw-values are applied in flows. But for the presentation of the values, I would like to display localized formatting with local-format applied. Same could apply for DateTime, yyyy-mm-dd vs dd-mm-yyyy.

I am aware of this:  
this.setCapabilityOptions(“x\_capability”, { “units”: { “en” : “kWh” }, “decimals”: 3 );

---

<div class="post-metadata">

**Author:** ![Adrian\_Rockall](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/adrian_rockall/32/13209_2.png) [@Adrian\_Rockall](https://community.homey.app/u/Adrian_Rockall)\
**Post date:** [December 3, 2023, 10:47pm UTC](https://community.homey.app/t/app-development-capabilities-value-formatting-to-local-localization-formatting-rules/96697/2 "2023-12-03T22:47:38Z")

</div>

I don’t think there is a way to set the format. All numbers in code have to use the . as the decimal, but i presume the Homey language or location will determine how they are presented to users.

---

<div class="post-metadata">

**Author:** ![Kim\_Kokholm](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/kim_kokholm/32/91519_2.png) [@Kim\_Kokholm](https://community.homey.app/u/Kim_Kokholm)\
**Post date:** [December 4, 2023, 6:53pm UTC](https://community.homey.app/t/app-development-capabilities-value-formatting-to-local-localization-formatting-rules/96697/3 "2023-12-04T18:53:43Z")

</div>

Yes, I am suspecting that to be true.

I will try and add local hints/text support, maybe this will set locale and the format will change.

Support for formatting of numbers and date could be a lovely feature from Homey 🙂

---

<div class="post-metadata">

**Author:** ![Michael\_E](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/michael_e/32/49062_2.png) [@Michael\_E](https://community.homey.app/u/Michael_E)\
**Post date:** [November 11, 2025, 7:19am UTC](https://community.homey.app/t/app-development-capabilities-value-formatting-to-local-localization-formatting-rules/96697/4 "2025-11-11T07:19:34Z")

</div>

[Numeric capabilities should use localized decimal separators · Issue #398 · athombv/homey-apps-sdk-issues · GitHub](https://github.com/athombv/homey-apps-sdk-issues/issues/398) 😿
