We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c291261 commit e2dec26Copy full SHA for e2dec26
plugins/search/plugin-slimsearch/src/node/generateIndex.ts
@@ -203,7 +203,8 @@ export const getSearchIndexStore = async (
203
204
await Promise.all(
205
entries(indexesByLocale).map(async ([localePath, indexes]) => {
206
- const lang = app.options.locales[localePath].lang ?? 'en'
+ // eslint-disable-next-line @typescript-eslint/no-unnecessary-condition
207
+ const lang = app.options.locales[localePath]?.lang ?? app.options.lang
208
const tokenizer = new Intl.Segmenter(lang, { granularity: 'word' })
209
210
const index = createIndex<string, IndexItem, IndexItem>({
0 commit comments