Skip to content

Commit d91996f

Browse files
authored
fix(plugin-theme-data): remove locales field in themeLocaleData (close #1287) (#1313)
1 parent 1fe9635 commit d91996f

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

ecosystem/plugin-theme-data/src/client/composables/useThemeLocaleData.ts

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,11 @@ export const useThemeLocaleData = <
2626
export const resolveThemeLocaleData = (
2727
theme: ThemeData,
2828
routeLocale: RouteLocale
29-
): ThemeData => ({
30-
...theme,
31-
...theme.locales?.[routeLocale],
32-
})
29+
): ThemeData => {
30+
const { locales, ...baseOptions } = theme
31+
32+
return {
33+
...baseOptions,
34+
...locales?.[routeLocale],
35+
}
36+
}

0 commit comments

Comments
 (0)