i18n(pt): Define algolia PT search locale in `config/shared.ts`

pull/3536/head
Vinicius de Liz 2 years ago
parent 4b0a353590
commit c1a017f0b4

@ -1,5 +1,6 @@
import { defineConfig } from 'vitepress' import { defineConfig } from 'vitepress'
import { search as zhSearch } from './zh' import { search as zhSearch } from './zh'
import { search as ptSearch } from './pt'
export const shared = defineConfig({ export const shared = defineConfig({
title: 'VitePress', title: 'VitePress',
@ -51,7 +52,7 @@ export const shared = defineConfig({
appId: '8J64VVRP8K', appId: '8J64VVRP8K',
apiKey: 'a18e2f4cc5665f6602c5631fd868adfd', apiKey: 'a18e2f4cc5665f6602c5631fd868adfd',
indexName: 'vitepress', indexName: 'vitepress',
locales: { ...zhSearch } locales: { ...zhSearch, ...ptSearch }
} }
}, },

Loading…
Cancel
Save