fumadocs-core 14.7.1 → 14.7.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -209,16 +209,8 @@ var STEMMERS = {
209
209
 
210
210
  // src/search/orama/create-i18n.ts
211
211
  async function getTokenizer(locale) {
212
- const mandarin = ["cn", "zh"];
213
- const language = Object.keys(STEMMERS).find((lang) => STEMMERS[lang] === locale) ?? locale;
214
- if (mandarin.some((code) => locale === code || locale.startsWith(`${code}-`))) {
215
- const { createTokenizer } = await import("@orama/tokenizers/mandarin");
216
- return {
217
- tokenizer: await createTokenizer()
218
- };
219
- }
220
212
  return {
221
- language
213
+ language: Object.keys(STEMMERS).find((lang) => STEMMERS[lang] === locale) ?? locale
222
214
  };
223
215
  }
224
216
  async function initSimple(options) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fumadocs-core",
3
- "version": "14.7.1",
3
+ "version": "14.7.2",
4
4
  "description": "The library for building a documentation website in Next.js",
5
5
  "keywords": [
6
6
  "NextJs",