@vendure/dashboard 3.5.1-master-202511120232 → 3.5.1-master-202511140232

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -12,6 +12,9 @@ export async function loadI18nMessages(locale: string): Promise<Messages> {
12
12
  } else {
13
13
  // In dev mode we allow the dynamic import behaviour
14
14
  const { messages } = await import(`../../i18n/locales/${locale}.po`);
15
- return messages;
15
+ const pluginTranslations = await import('virtual:plugin-translations');
16
+ const safeLocale = locale.replace(/-/g, '_');
17
+ const pluginTranslationsForLocale = pluginTranslations.default[safeLocale] ?? {};
18
+ return { ...messages, ...pluginTranslationsForLocale };
16
19
  }
17
20
  }
@@ -5,6 +5,9 @@ declare module 'virtual:admin-api-schema' {
5
5
  declare module 'virtual:dashboard-extensions' {
6
6
  export const runDashboardExtensions: () => Promise<void>;
7
7
  }
8
+ declare module 'virtual:plugin-translations' {
9
+ export default translations = Record<string, any>;
10
+ }
8
11
 
9
12
  declare module 'virtual:vendure-ui-config' {
10
13
  import { LanguageCode } from '@vendure/core';