The need
The « Electricity Price » widget displays the current rate as a badge, and the next change in parentheses. Today, a French-speaking user on a Tempo contract sees blue off-peak. They expect to read Bleu HC, as on their bill.
I would like these labels to be displayed in the user’s language, with the terms we actually use: Bleu HC, Blanc HP, Heures creuses, etc.
Initial request: Amélioration widget Prix de l’électricité
What happens today
These labels are automatically generated in English for:
- contracts taken from the old pricing system (migration);
- contracts created from the current community catalog.
| Contract type | Current labels |
|---|---|
| Tempo | blue peak, blue off-peak, white peak, white off-peak, red peak, red off-peak, and off-peak when the day’s color is not yet known |
| Peak/off-peak hours | peak, off-peak |
The EDF Tempo model integrated into Gladys has the same problem (Blue off-peak). These labels appear in the widget and in the contract creation assistant preview.
However, the names of the contract models and the labels of their parameters (« Jour bleu, heures creuses ») are already translated. Only the rate labels are not.
In the meantime
We can already rename the labels manually: edit the contract in « Contracts », switch to JSON mode, and replace the "label" texts. The widget then displays the new label.