We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1fe9635 commit d91996fCopy full SHA for d91996f
ecosystem/plugin-theme-data/src/client/composables/useThemeLocaleData.ts
@@ -26,7 +26,11 @@ export const useThemeLocaleData = <
26
export const resolveThemeLocaleData = (
27
theme: ThemeData,
28
routeLocale: RouteLocale
29
-): ThemeData => ({
30
- ...theme,
31
- ...theme.locales?.[routeLocale],
32
-})
+): ThemeData => {
+ const { locales, ...baseOptions } = theme
+
+ return {
33
+ ...baseOptions,
34
+ ...locales?.[routeLocale],
35
+ }
36
+}
0 commit comments