@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.
- package/dist/vite/utils/compiler.d.ts +1 -0
- package/dist/vite/utils/compiler.js +5 -4
- package/dist/vite/utils/get-dashboard-paths.d.ts +5 -0
- package/dist/vite/utils/get-dashboard-paths.js +20 -0
- package/dist/vite/vite-plugin-tailwind-source.js +2 -15
- package/dist/vite/vite-plugin-translations.d.ts +10 -1
- package/dist/vite/vite-plugin-translations.js +156 -45
- package/dist/vite/vite-plugin-vendure-dashboard.d.ts +12 -0
- package/dist/vite/vite-plugin-vendure-dashboard.js +1 -0
- package/package.json +4 -4
- package/src/app/routes/_authenticated/_zones/components/zone-bulk-actions.tsx +49 -1
- package/src/app/routes/_authenticated/_zones/components/zone-countries-table.tsx +34 -16
- package/src/lib/components/data-input/string-list-input.tsx +181 -26
- package/src/lib/components/data-table/use-generated-columns.tsx +1 -1
- package/src/lib/components/layout/manage-languages-dialog.tsx +2 -1
- package/src/lib/components/shared/custom-fields-form.tsx +1 -1
- package/src/lib/components/shared/multi-select.tsx +1 -1
- package/src/lib/components/shared/navigation-confirmation.tsx +1 -1
- package/src/lib/graphql/graphql-env.d.ts +36 -13
- package/src/lib/lib/load-i18n-messages.ts +4 -1
- package/src/lib/virtual.d.ts +3 -0
|
@@ -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
|
-
|
|
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
|
}
|
package/src/lib/virtual.d.ts
CHANGED
|
@@ -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';
|