Use correct units in hardware info
This commit is contained in:
parent
6ce474053e
commit
df80953b5e
@ -21,13 +21,13 @@
|
|||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<th>{{ $t('hardwareinfo.CpuTemperature') }}</th>
|
<th>{{ $t('hardwareinfo.CpuTemperature') }}</th>
|
||||||
<td>{{ $n(systemStatus.cputemp, 'decimalNoDigits') }} {{ $t('hardwareinfo.DegreeC') }}</td>
|
<td>{{ $n(systemStatus.cputemp, 'celsius') }}</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<th>{{ $t('hardwareinfo.FlashSize') }}</th>
|
<th>{{ $t('hardwareinfo.FlashSize') }}</th>
|
||||||
<td>
|
<td>
|
||||||
{{ $n(systemStatus.flashsize) }} {{ $t('hardwareinfo.Bytes') }}
|
{{ $n(systemStatus.flashsize, 'byte') }}
|
||||||
({{ $n(systemStatus.flashsize / 1024 / 1024) }} {{ $t('hardwareinfo.MegaBytes') }})
|
({{ $n(systemStatus.flashsize / 1024 / 1024, 'megabyte') }})
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
</tbody>
|
</tbody>
|
||||||
|
|||||||
@ -205,9 +205,7 @@
|
|||||||
"Mhz": "MHz",
|
"Mhz": "MHz",
|
||||||
"CpuTemperature": "CPU Temperatur",
|
"CpuTemperature": "CPU Temperatur",
|
||||||
"DegreeC": "°C",
|
"DegreeC": "°C",
|
||||||
"FlashSize": "Flash-Speichergröße",
|
"FlashSize": "Flash-Speichergröße"
|
||||||
"Bytes": "Bytes",
|
|
||||||
"MegaBytes": "MB"
|
|
||||||
},
|
},
|
||||||
"memoryinfo": {
|
"memoryinfo": {
|
||||||
"MemoryInformation": "Speicherinformationen",
|
"MemoryInformation": "Speicherinformationen",
|
||||||
|
|||||||
@ -205,9 +205,7 @@
|
|||||||
"Mhz": "MHz",
|
"Mhz": "MHz",
|
||||||
"CpuTemperature": "CPU Temperature",
|
"CpuTemperature": "CPU Temperature",
|
||||||
"DegreeC": "°C",
|
"DegreeC": "°C",
|
||||||
"FlashSize": "Flash Memory Size",
|
"FlashSize": "Flash Memory Size"
|
||||||
"Bytes": "Bytes",
|
|
||||||
"MegaBytes": "MB"
|
|
||||||
},
|
},
|
||||||
"memoryinfo": {
|
"memoryinfo": {
|
||||||
"MemoryInformation": "Memory Information",
|
"MemoryInformation": "Memory Information",
|
||||||
|
|||||||
@ -205,9 +205,7 @@
|
|||||||
"Mhz": "MHz",
|
"Mhz": "MHz",
|
||||||
"CpuTemperature": "CPU Temperature",
|
"CpuTemperature": "CPU Temperature",
|
||||||
"DegreeC": "°C",
|
"DegreeC": "°C",
|
||||||
"FlashSize": "Taille de la mémoire flash",
|
"FlashSize": "Taille de la mémoire flash"
|
||||||
"Bytes": "octets",
|
|
||||||
"MegaBytes": "Mo"
|
|
||||||
},
|
},
|
||||||
"memoryinfo": {
|
"memoryinfo": {
|
||||||
"MemoryInformation": "Informations sur la mémoire",
|
"MemoryInformation": "Informations sur la mémoire",
|
||||||
|
|||||||
@ -62,9 +62,18 @@ export const numberFormats: I18nOptions["numberFormats"] = {
|
|||||||
percent: {
|
percent: {
|
||||||
style: 'percent',
|
style: 'percent',
|
||||||
},
|
},
|
||||||
|
byte: {
|
||||||
|
style: 'unit', unit: 'byte',
|
||||||
|
},
|
||||||
kilobyte: {
|
kilobyte: {
|
||||||
style: 'unit', unit: 'kilobyte',
|
style: 'unit', unit: 'kilobyte',
|
||||||
},
|
},
|
||||||
|
megabyte: {
|
||||||
|
style: 'unit', unit: 'megabyte',
|
||||||
|
},
|
||||||
|
celsius: {
|
||||||
|
style: 'unit', unit: 'celsius', maximumFractionDigits: 1,
|
||||||
|
},
|
||||||
},
|
},
|
||||||
[Locales.DE]: {
|
[Locales.DE]: {
|
||||||
decimal: {
|
decimal: {
|
||||||
@ -79,9 +88,18 @@ export const numberFormats: I18nOptions["numberFormats"] = {
|
|||||||
percent: {
|
percent: {
|
||||||
style: 'percent',
|
style: 'percent',
|
||||||
},
|
},
|
||||||
|
byte: {
|
||||||
|
style: 'unit', unit: 'byte',
|
||||||
|
},
|
||||||
kilobyte: {
|
kilobyte: {
|
||||||
style: 'unit', unit: 'kilobyte',
|
style: 'unit', unit: 'kilobyte',
|
||||||
},
|
},
|
||||||
|
megabyte: {
|
||||||
|
style: 'unit', unit: 'megabyte',
|
||||||
|
},
|
||||||
|
celsius: {
|
||||||
|
style: 'unit', unit: 'celsius', maximumFractionDigits: 1,
|
||||||
|
},
|
||||||
},
|
},
|
||||||
[Locales.FR]: {
|
[Locales.FR]: {
|
||||||
decimal: {
|
decimal: {
|
||||||
@ -96,10 +114,19 @@ export const numberFormats: I18nOptions["numberFormats"] = {
|
|||||||
percent: {
|
percent: {
|
||||||
style: 'percent',
|
style: 'percent',
|
||||||
},
|
},
|
||||||
|
byte: {
|
||||||
|
style: 'unit', unit: 'byte',
|
||||||
|
},
|
||||||
kilobyte: {
|
kilobyte: {
|
||||||
style: 'unit', unit: 'kilobyte',
|
style: 'unit', unit: 'kilobyte',
|
||||||
},
|
},
|
||||||
|
megabyte: {
|
||||||
|
style: 'unit', unit: 'megabyte',
|
||||||
|
},
|
||||||
|
celsius: {
|
||||||
|
style: 'unit', unit: 'celsius', maximumFractionDigits: 1,
|
||||||
|
},
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
export const defaultLocale = Locales.EN;
|
export const defaultLocale = Locales.EN;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user