Skip to content

#1 PDF Application on GitHub that lets you edit PDFs on any device anywhere

2.8 KB
Raw Blame
export const loadCoreRules = () =>
  import("@editor/services/heuristic/rules/core.json");

export const LANGUAGE_PACKS: Record<string, () => Promise<unknown>> = {
  ar: () => import("@editor/services/heuristic/rules/packs/ar.json"),
  az: () => import("@editor/services/heuristic/rules/packs/az.json"),
  bg: () => import("@editor/services/heuristic/rules/packs/bg.json"),
  bo: () => import("@editor/services/heuristic/rules/packs/bo.json"),
  ca: () => import("@editor/services/heuristic/rules/packs/ca.json"),
  cs: () => import("@editor/services/heuristic/rules/packs/cs.json"),
  da: () => import("@editor/services/heuristic/rules/packs/da.json"),
  de: () => import("@editor/services/heuristic/rules/packs/de.json"),
  el: () => import("@editor/services/heuristic/rules/packs/el.json"),
  en: () => import("@editor/services/heuristic/rules/packs/en.json"),
  es: () => import("@editor/services/heuristic/rules/packs/es.json"),
  eu: () => import("@editor/services/heuristic/rules/packs/eu.json"),
  fa: () => import("@editor/services/heuristic/rules/packs/fa.json"),
  fr: () => import("@editor/services/heuristic/rules/packs/fr.json"),
  ga: () => import("@editor/services/heuristic/rules/packs/ga.json"),
  hi: () => import("@editor/services/heuristic/rules/packs/hi.json"),
  hr: () => import("@editor/services/heuristic/rules/packs/hr.json"),
  hu: () => import("@editor/services/heuristic/rules/packs/hu.json"),
  id: () => import("@editor/services/heuristic/rules/packs/id.json"),
  it: () => import("@editor/services/heuristic/rules/packs/it.json"),
  ja: () => import("@editor/services/heuristic/rules/packs/ja.json"),
  ko: () => import("@editor/services/heuristic/rules/packs/ko.json"),
  ml: () => import("@editor/services/heuristic/rules/packs/ml.json"),
  nl: () => import("@editor/services/heuristic/rules/packs/nl.json"),
  no: () => import("@editor/services/heuristic/rules/packs/no.json"),
  pl: () => import("@editor/services/heuristic/rules/packs/pl.json"),
  pt: () => import("@editor/services/heuristic/rules/packs/pt.json"),
  ro: () => import("@editor/services/heuristic/rules/packs/ro.json"),
  ru: () => import("@editor/services/heuristic/rules/packs/ru.json"),
  sk: () => import("@editor/services/heuristic/rules/packs/sk.json"),
  sl: () => import("@editor/services/heuristic/rules/packs/sl.json"),
  sr: () => import("@editor/services/heuristic/rules/packs/sr.json"),
  sv: () => import("@editor/services/heuristic/rules/packs/sv.json"),
  th: () => import("@editor/services/heuristic/rules/packs/th.json"),
  tr: () => import("@editor/services/heuristic/rules/packs/tr.json"),
  uk: () => import("@editor/services/heuristic/rules/packs/uk.json"),
  vi: () => import("@editor/services/heuristic/rules/packs/vi.json"),
  zh: () => import("@editor/services/heuristic/rules/packs/zh.json"),
};

export const PACK_LANGUAGES: string[] = Object.keys(LANGUAGE_PACKS);