Browse Source

fix: updated namespace module (#632)

N33d this merged.
pull/634/head
Dan Ditomaso 1 year ago
committed by GitHub
parent
commit
24e9764fcb
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 2
      src/components/Sidebar.tsx
  2. 4
      src/i18n/config.ts

2
src/components/Sidebar.tsx

@ -213,7 +213,7 @@ export const Sidebar = ({ children }: SidebarProps) => {
shortName: myNode?.user?.shortName ?? t("unknown.shortName"),
}}
firmwareVersion={myMetadata?.firmwareVersion ??
t("unknown.firmwareVersion")}
t("unknown.notAvailable")}
deviceMetrics={{
batteryLevel: myNode.deviceMetrics?.batteryLevel,
voltage: myNode.deviceMetrics?.voltage,

4
src/i18n/config.ts

@ -20,7 +20,7 @@ i18next
.use(LanguageDetector)
.init({
backend: {
// this will lazy load resources from the i8n folder
// this will lazy load resources from the i18n folder
loadPath: "/src/i18n/locales/{{lng}}/{{ns}}.json",
},
react: {
@ -42,7 +42,7 @@ i18next
"commandPalette",
"common",
"deviceConfig",
"configModules",
"moduleConfig",
"dashboard",
"dialog",
"messages",

Loading…
Cancel
Save