import type { GungnirThemeLocaleOptions } from "../../shared" ; import { en } from "../i18n" ; const defaultLocaleOptions = { hitokoto : false , personalInfo : null , homeHeaderImages : null , pages : null , catalog : true , postNumPerPage : 10 , search : true , searchMaxSuggestions : 10 , searchPlaceholder : "$ grep ..." , langIcon : "translate" , searchIcon : "search" , navbar : [ ] , darkMode : true , repo : null , sidebar : "auto" , sidebarDepth : 2 , editLink : true , lastUpdated : true , contributors : false , footer : `
    Powered by <a href="https://v2.vuepress.vuejs.org" target="_blank">VuePress</a> &
    <a href="https://github.com/Renovamen/vuepress-theme-gungnir" target="_blank">Gungnir</a>
  ` , ... en } ; /**
 * Assign default options to `themeConfig`
 */ export const assignDefaultLocaleOptions = ( localeOptions ) : void => { if ( ! localeOptions . locales ) { localeOptions . locales = { } ; } if ( ! localeOptions . locales [ "/" ] ) { localeOptions . locales [ "/" ] = { } ; } Object . assign ( localeOptions , { ... defaultLocaleOptions , ... localeOptions } ) ; Object . assign ( localeOptions . locales [ "/" ] , { ... en , ... localeOptions . locales [ "/" ] } ) ; } ;