Browse Source

fix: updated namespace module

pull/632/head
Dan Ditomaso 1 year ago
parent
commit
076f42182a
  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