Skip to content

Commit

Permalink
feat(about): add zh version
Browse files Browse the repository at this point in the history
  • Loading branch information
Koenkk committed Oct 21, 2023
1 parent 2b6c0d0 commit 3c7a805
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/components/settings/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,8 @@ export class SettingsPage extends Component<
content: <>{bridgeInfo.coordinator?.ieee_address ?? t('common:unknown')}</>,
},
{ translationKey: 'frontend_version', content: frontentPackageJson.version },
{ translationKey: 'zigbee_herdsman_converters_version', content: bridgeInfo.zigbee_herdsman_converters_version },
{ translationKey: 'zigbee_herdsman_converters_version', content: bridgeInfo.zigbee_herdsman_converters.version },
{ translationKey: 'zigbee_herdsman_version', content: bridgeInfo.zigbee_herdsman_converters.version },
{ translationKey: 'stats', content: <Stats devices={devices} /> },
];

Expand Down
1 change: 1 addition & 0 deletions src/i18n/locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -2233,6 +2233,7 @@
"frontend": "Frontend",
"frontend_version": "Frontend version",
"zigbee_herdsman_converters_version": "Zigbee-herdsman-converters version",
"zigbee_herdsman_version": "Zigbee-herdsman version",
"main": "Main",
"mqtt": "MQTT",
"ota": "OTA updates",
Expand Down
1 change: 1 addition & 0 deletions src/i18n/locales/nl.json
Original file line number Diff line number Diff line change
Expand Up @@ -1852,6 +1852,7 @@
"external_converters": "Externe converters",
"frontend_version": "Versie frontend",
"zigbee_herdsman_converters_version": "Zigbee-herdsman-converters versie",
"zigbee_herdsman_version": "Zigbee-herdsman versie",
"main": "Hoofd",
"passlist": "Toegangslijst",
"raw": "Ruw",
Expand Down
3 changes: 2 additions & 1 deletion src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,8 @@ export interface BridgeInfo {
permit_join_timeout: number;
commit?: string;
version?: string;
zigbee_herdsman_converters_version: string,
zigbee_herdsman_converters: {version: string},
zigbee_herdsman: {version: string},
coordinator?: {
meta?: {
revision?: string;
Expand Down

0 comments on commit 3c7a805

Please sign in to comment.