Add translations for measurement units #1056
-
ContextCurrently, we have have ability to translate entity names, but not measurement units, which means that these are all in English. For the most SI units, that's not a problem, but there are occasions where some languages have different names or some integrations have custom units which should be translated. We already have Example: {
"entity": {
"sensor": {
"stargazers_count": {
"name": "Stars",
"native_unit_of_measurement": "Stars"
},
}
}
} IntegrationsGeneral translationsSome measurement units are spelled differently in some languages, therefore all integrations using these would profit. For example:
Specific integrations with custom units of measurementThere are also integrations which have custom units of measurements, which are currently in English:
These could all profit from measurement unit translations. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 3 replies
-
@autinerd |
Beta Was this translation helpful? Give feedback.
-
@autinerd In most cases we only translate in frontend, the current exceptions are entity and device names which are translated in core. Please clarify your proposal where translation of the unit would happen, would translated units of measurement be frontend only, or would we need to translate the unit in core? |
Beta Was this translation helpful? Give feedback.
-
@autinerd let's go ahead with an implementation of this proposal 👍 Two comments on the implementation:
|
Beta Was this translation helpful? Give feedback.
@autinerd let's go ahead with an implementation of this proposal 👍
Two comments on the implementation: