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"), shortName: myNode?.user?.shortName ?? t("unknown.shortName"),
}} }}
firmwareVersion={myMetadata?.firmwareVersion ?? firmwareVersion={myMetadata?.firmwareVersion ??
t("unknown.firmwareVersion")} t("unknown.notAvailable")}
deviceMetrics={{ deviceMetrics={{
batteryLevel: myNode.deviceMetrics?.batteryLevel, batteryLevel: myNode.deviceMetrics?.batteryLevel,
voltage: myNode.deviceMetrics?.voltage, voltage: myNode.deviceMetrics?.voltage,

4
src/i18n/config.ts

@ -20,7 +20,7 @@ i18next
.use(LanguageDetector) .use(LanguageDetector)
.init({ .init({
backend: { 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", loadPath: "/src/i18n/locales/{{lng}}/{{ns}}.json",
}, },
react: { react: {
@ -42,7 +42,7 @@ i18next
"commandPalette", "commandPalette",
"common", "common",
"deviceConfig", "deviceConfig",
"configModules", "moduleConfig",
"dashboard", "dashboard",
"dialog", "dialog",
"messages", "messages",

Loading…
Cancel
Save