// locales/en.json
var en_default = {
  $meta: { locale: "en", direction: "ltr" },
  "common.save": "Save",
  "common.cancel": "Cancel",
  "common.delete": "Delete",
  "common.close": "Close",
  "common.confirm": "Are you sure?",
  "common.create": "Create",
  "common.edit": "Edit",
  "common.view": "View",
  "common.add": "Add",
  "common.remove": "Remove",
  "common.search": "Search...",
  "common.filter": "Filter",
  "common.actions": "Actions",
  "common.yes": "Yes",
  "common.no": "No",
  "common.selected": "selected",
  "common.ok": "OK",
  "common.done": "Done",
  "common.apply": "Apply",
  "common.reset": "Reset",
  "common.refresh": "Refresh",
  "common.export": "Export",
  "common.import": "Import",
  "common.copy": "Copy",
  "common.settings": "Settings",
  "nav.previous": "Previous",
  "nav.next": "Next",
  "nav.back": "Back",
  "nav.home": "Home",
  "form.submit": "Submit",
  "form.saving": "Saving...",
  "form.required": "This field is required",
  "form.invalidEmail": "Enter a valid email address",
  "form.selectPlaceholder": "Select {{label}}...",
  "form.searchPlaceholder": "Search {{entity}}...",
  "table.empty.title": "No items found",
  "table.empty.description": "No items to display.",
  "table.search.placeholder": "Search...",
  "table.pagination.showing": "Showing {{start}} to {{end}} of {{total}} results",
  "table.pagination.page": "Page {{page}} of {{totalPages}}",
  "table.bulk.selected": "{{count}} selected",
  "table.loading": "Loading...",
  "status.loading": "Loading...",
  "status.scheduled": "Scheduled",
  "status.inProgress": "In Progress",
  "status.completed": "Completed",
  "status.cancelled": "Cancelled",
  "status.pending": "Pending",
  "status.active": "Active",
  "status.inactive": "Inactive",
  "status.draft": "Draft",
  "status.archived": "Archived",
  "error.generic": "Something went wrong",
  "error.retry": "Try again",
  "error.notFound": "Not found",
  "error.loadFailed": "Failed to load: {{message}}",
  "error.configMissing": "Configuration not found for: {{id}}",
  "common.loading": "Loading...",
  "common.showMore": "Show More",
  "common.showLess": "Show Less",
  "common.noResults": "No results found",
  "common.saveChanges": "Save Changes",
  "common.retry": "Retry",
  "common.open": "Open",
  "common.back": "Back",
  "empty.noItems": "No items",
  "empty.noData": "No data available",
  "empty.noItemsYet": "No items yet",
  "empty.noItemsAdded": "No items added yet",
  "empty.noOptionsFound": "No options found",
  "list.addItemPlaceholder": "Add new item...",
  "error.occurred": "An error occurred",
  "error.failedToLoad": "Failed to load data",
  "wizard.back": "Back",
  "wizard.next": "Next",
  "wizard.complete": "Complete",
  "wizard.stepOf": "Step {{current}} of {{total}}",
  "pagination.previous": "Previous",
  "pagination.next": "Next",
  "pagination.total": "Total:",
  "pagination.show": "Show:",
  "pagination.goTo": "Go to:",
  "pagination.go": "Go",
  "auth.signIn": "Sign in",
  "auth.signOut": "Sign out",
  "dialog.confirm": "Confirm",
  "dialog.cancel": "Cancel",
  "dialog.loading": "Loading...",
  "dialog.delete.title": "Delete {{item}}?",
  "dialog.delete.message": "This action cannot be undone.",
  "trait.availableActions": "Available Actions",
  "trait.transitions": "Transitions",
  "trait.availableNow": "Available now",
  "book.startReading": "Start Reading",
  "book.tableOfContents": "Table of Contents",
  "book.partNumber": "Part {{number}}",
  "book.print": "Print",
  "book.previousPage": "Previous page",
  "book.nextPage": "Next page",
  "quiz.showAnswer": "Show answer",
  "quiz.hideAnswer": "Hide answer"
};

// locales/ar.json
var ar_default = {
  $meta: { locale: "ar", direction: "rtl" },
  "common.save": "\u062D\u0641\u0638",
  "common.cancel": "\u0625\u0644\u063A\u0627\u0621",
  "common.delete": "\u062D\u0630\u0641",
  "common.close": "\u0625\u063A\u0644\u0627\u0642",
  "common.confirm": "\u0647\u0644 \u0623\u0646\u062A \u0645\u062A\u0623\u0643\u062F\u061F",
  "common.create": "\u0625\u0646\u0634\u0627\u0621",
  "common.edit": "\u062A\u0639\u062F\u064A\u0644",
  "common.view": "\u0639\u0631\u0636",
  "common.add": "\u0625\u0636\u0627\u0641\u0629",
  "common.remove": "\u0625\u0632\u0627\u0644\u0629",
  "common.search": "\u0628\u062D\u062B...",
  "common.filter": "\u062A\u0635\u0641\u064A\u0629",
  "common.actions": "\u0625\u062C\u0631\u0627\u0621\u0627\u062A",
  "common.yes": "\u0646\u0639\u0645",
  "common.no": "\u0644\u0627",
  "common.ok": "\u062D\u0633\u0646\u064B\u0627",
  "common.done": "\u062A\u0645",
  "common.apply": "\u062A\u0637\u0628\u064A\u0642",
  "common.reset": "\u0625\u0639\u0627\u062F\u0629 \u062A\u0639\u064A\u064A\u0646",
  "common.refresh": "\u062A\u062D\u062F\u064A\u062B",
  "common.export": "\u062A\u0635\u062F\u064A\u0631",
  "common.import": "\u0627\u0633\u062A\u064A\u0631\u0627\u062F",
  "common.copy": "\u0646\u0633\u062E",
  "common.settings": "\u0627\u0644\u0625\u0639\u062F\u0627\u062F\u0627\u062A",
  "nav.previous": "\u0627\u0644\u0633\u0627\u0628\u0642",
  "nav.next": "\u0627\u0644\u062A\u0627\u0644\u064A",
  "nav.back": "\u0631\u062C\u0648\u0639",
  "nav.home": "\u0627\u0644\u0631\u0626\u064A\u0633\u064A\u0629",
  "form.submit": "\u0625\u0631\u0633\u0627\u0644",
  "form.saving": "\u062C\u0627\u0631\u064D \u0627\u0644\u062D\u0641\u0638...",
  "form.required": "\u0647\u0630\u0627 \u0627\u0644\u062D\u0642\u0644 \u0645\u0637\u0644\u0648\u0628",
  "form.invalidEmail": "\u0623\u062F\u062E\u0644 \u0628\u0631\u064A\u062F\u064B\u0627 \u0625\u0644\u0643\u062A\u0631\u0648\u0646\u064A\u064B\u0627 \u0635\u062D\u064A\u062D\u064B\u0627",
  "form.selectPlaceholder": "\u0627\u062E\u062A\u0631 {{label}}...",
  "form.searchPlaceholder": "\u0627\u0628\u062D\u062B \u0639\u0646 {{entity}}...",
  "table.empty.title": "\u0644\u0627 \u062A\u0648\u062C\u062F \u0639\u0646\u0627\u0635\u0631",
  "table.empty.description": "\u0644\u0627 \u062A\u0648\u062C\u062F \u0639\u0646\u0627\u0635\u0631 \u0644\u0644\u0639\u0631\u0636.",
  "table.search.placeholder": "\u0628\u062D\u062B...",
  "table.pagination.showing": "\u0639\u0631\u0636 {{start}} \u0625\u0644\u0649 {{end}} \u0645\u0646 {{total}} \u0646\u062A\u064A\u062C\u0629",
  "table.pagination.page": "\u0635\u0641\u062D\u0629 {{page}} \u0645\u0646 {{totalPages}}",
  "table.bulk.selected": "{{count}} \u0645\u062D\u062F\u062F",
  "table.loading": "\u062C\u0627\u0631\u064D \u0627\u0644\u062A\u062D\u0645\u064A\u0644...",
  "status.loading": "\u062C\u0627\u0631\u064D \u0627\u0644\u062A\u062D\u0645\u064A\u0644...",
  "status.scheduled": "\u0645\u062C\u062F\u0648\u0644",
  "status.inProgress": "\u0642\u064A\u062F \u0627\u0644\u062A\u0646\u0641\u064A\u0630",
  "status.completed": "\u0645\u0643\u062A\u0645\u0644",
  "status.cancelled": "\u0645\u0644\u063A\u0649",
  "status.pending": "\u0642\u064A\u062F \u0627\u0644\u0627\u0646\u062A\u0638\u0627\u0631",
  "status.active": "\u0646\u0634\u0637",
  "status.inactive": "\u063A\u064A\u0631 \u0646\u0634\u0637",
  "status.draft": "\u0645\u0633\u0648\u062F\u0629",
  "status.archived": "\u0645\u0624\u0631\u0634\u0641",
  "error.generic": "\u062D\u062F\u062B \u062E\u0637\u0623 \u0645\u0627",
  "error.retry": "\u062D\u0627\u0648\u0644 \u0645\u0631\u0629 \u0623\u062E\u0631\u0649",
  "error.notFound": "\u063A\u064A\u0631 \u0645\u0648\u062C\u0648\u062F",
  "error.loadFailed": "\u0641\u0634\u0644 \u0627\u0644\u062A\u062D\u0645\u064A\u0644: {{message}}",
  "error.configMissing": "\u0644\u0645 \u064A\u062A\u0645 \u0627\u0644\u0639\u062B\u0648\u0631 \u0639\u0644\u0649 \u0627\u0644\u0625\u0639\u062F\u0627\u062F: {{id}}",
  "common.loading": "\u062C\u0627\u0631\u064D \u0627\u0644\u062A\u062D\u0645\u064A\u0644...",
  "common.saveChanges": "\u062D\u0641\u0638 \u0627\u0644\u062A\u063A\u064A\u064A\u0631\u0627\u062A",
  "common.retry": "\u0625\u0639\u0627\u062F\u0629 \u0627\u0644\u0645\u062D\u0627\u0648\u0644\u0629",
  "common.open": "\u0641\u062A\u062D",
  "common.back": "\u0631\u062C\u0648\u0639",
  "empty.noItems": "\u0644\u0627 \u062A\u0648\u062C\u062F \u0639\u0646\u0627\u0635\u0631",
  "empty.noData": "\u0644\u0627 \u062A\u0648\u062C\u062F \u0628\u064A\u0627\u0646\u0627\u062A",
  "empty.noItemsYet": "\u0644\u0627 \u062A\u0648\u062C\u062F \u0639\u0646\u0627\u0635\u0631 \u0628\u0639\u062F",
  "empty.noItemsAdded": "\u0644\u0645 \u062A\u062A\u0645 \u0625\u0636\u0627\u0641\u0629 \u0639\u0646\u0627\u0635\u0631 \u0628\u0639\u062F",
  "empty.noOptionsFound": "\u0644\u0645 \u064A\u062A\u0645 \u0627\u0644\u0639\u062B\u0648\u0631 \u0639\u0644\u0649 \u062E\u064A\u0627\u0631\u0627\u062A",
  "list.addItemPlaceholder": "\u0625\u0636\u0627\u0641\u0629 \u0639\u0646\u0635\u0631 \u062C\u062F\u064A\u062F...",
  "error.occurred": "\u062D\u062F\u062B \u062E\u0637\u0623",
  "error.failedToLoad": "\u0641\u0634\u0644 \u062A\u062D\u0645\u064A\u0644 \u0627\u0644\u0628\u064A\u0627\u0646\u0627\u062A",
  "wizard.back": "\u0631\u062C\u0648\u0639",
  "wizard.next": "\u0627\u0644\u062A\u0627\u0644\u064A",
  "wizard.complete": "\u0625\u0643\u0645\u0627\u0644",
  "wizard.stepOf": "\u0627\u0644\u062E\u0637\u0648\u0629 {{current}} \u0645\u0646 {{total}}",
  "pagination.previous": "\u0627\u0644\u0633\u0627\u0628\u0642",
  "pagination.next": "\u0627\u0644\u062A\u0627\u0644\u064A",
  "pagination.total": "\u0627\u0644\u0645\u062C\u0645\u0648\u0639:",
  "pagination.show": "\u0639\u0631\u0636:",
  "pagination.goTo": "\u0627\u0644\u0627\u0646\u062A\u0642\u0627\u0644 \u0625\u0644\u0649:",
  "pagination.go": "\u0627\u0646\u062A\u0642\u0627\u0644",
  "auth.signIn": "\u062A\u0633\u062C\u064A\u0644 \u0627\u0644\u062F\u062E\u0648\u0644",
  "auth.signOut": "\u062A\u0633\u062C\u064A\u0644 \u0627\u0644\u062E\u0631\u0648\u062C",
  "dialog.confirm": "\u062A\u0623\u0643\u064A\u062F",
  "dialog.cancel": "\u0625\u0644\u063A\u0627\u0621",
  "dialog.loading": "\u062C\u0627\u0631\u064D \u0627\u0644\u062A\u062D\u0645\u064A\u0644...",
  "dialog.delete.title": "\u062D\u0630\u0641 {{item}}\u061F",
  "dialog.delete.message": "\u0644\u0627 \u064A\u0645\u0643\u0646 \u0627\u0644\u062A\u0631\u0627\u062C\u0639 \u0639\u0646 \u0647\u0630\u0627 \u0627\u0644\u0625\u062C\u0631\u0627\u0621.",
  "trait.availableActions": "\u0627\u0644\u0625\u062C\u0631\u0627\u0621\u0627\u062A \u0627\u0644\u0645\u062A\u0627\u062D\u0629",
  "trait.transitions": "\u0627\u0644\u0627\u0646\u062A\u0642\u0627\u0644\u0627\u062A",
  "trait.availableNow": "\u0645\u062A\u0627\u062D \u0627\u0644\u0622\u0646",
  "book.startReading": "\u0627\u0628\u062F\u0623 \u0627\u0644\u0642\u0631\u0627\u0621\u0629",
  "book.tableOfContents": "\u0641\u0647\u0631\u0633 \u0627\u0644\u0645\u062D\u062A\u0648\u064A\u0627\u062A",
  "book.partNumber": "\u0627\u0644\u062C\u0632\u0621 {{number}}",
  "book.print": "\u0637\u0628\u0627\u0639\u0629",
  "book.previousPage": "\u0627\u0644\u0635\u0641\u062D\u0629 \u0627\u0644\u0633\u0627\u0628\u0642\u0629",
  "book.nextPage": "\u0627\u0644\u0635\u0641\u062D\u0629 \u0627\u0644\u062A\u0627\u0644\u064A\u0629",
  "quiz.showAnswer": "\u0623\u0638\u0647\u0631 \u0627\u0644\u0625\u062C\u0627\u0628\u0629",
  "quiz.hideAnswer": "\u0623\u062E\u0641\u0650 \u0627\u0644\u0625\u062C\u0627\u0628\u0629"
};

// locales/sl.json
var sl_default = {
  $meta: { locale: "sl", direction: "ltr" },
  "common.save": "Shrani",
  "common.cancel": "Prekli\u010Di",
  "common.delete": "Izbri\u0161i",
  "common.close": "Zapri",
  "common.confirm": "Ali ste prepri\u010Dani?",
  "common.create": "Ustvari",
  "common.edit": "Uredi",
  "common.view": "Prika\u017Ei",
  "common.add": "Dodaj",
  "common.remove": "Odstrani",
  "common.search": "Iskanje...",
  "common.filter": "Filtriraj",
  "common.actions": "Dejanja",
  "common.yes": "Da",
  "common.no": "Ne",
  "common.ok": "V redu",
  "common.done": "Kon\u010Dano",
  "common.apply": "Uporabi",
  "common.reset": "Ponastavi",
  "common.refresh": "Osve\u017Ei",
  "common.export": "Izvozi",
  "common.import": "Uvozi",
  "common.copy": "Kopiraj",
  "common.settings": "Nastavitve",
  "nav.previous": "Prej\u0161nji",
  "nav.next": "Naslednji",
  "nav.back": "Nazaj",
  "nav.home": "Domov",
  "form.submit": "Po\u0161lji",
  "form.saving": "Shranjujem...",
  "form.required": "To polje je obvezno",
  "form.invalidEmail": "Vnesite veljaven e-po\u0161tni naslov",
  "form.selectPlaceholder": "Izberite {{label}}...",
  "form.searchPlaceholder": "Iskanje {{entity}}...",
  "table.empty.title": "Ni najdenih elementov",
  "table.empty.description": "Ni elementov za prikaz.",
  "table.search.placeholder": "Iskanje...",
  "table.pagination.showing": "Prikazujem {{start}} do {{end}} od {{total}} rezultatov",
  "table.pagination.page": "Stran {{page}} od {{totalPages}}",
  "table.bulk.selected": "{{count}} izbranih",
  "table.loading": "Nalagam...",
  "status.loading": "Nalagam...",
  "status.scheduled": "Na\u010Drtovano",
  "status.inProgress": "V izvajanju",
  "status.completed": "Zaklju\u010Deno",
  "status.cancelled": "Preklicano",
  "status.pending": "V \u010Dakanju",
  "status.active": "Aktivno",
  "status.inactive": "Neaktivno",
  "status.draft": "Osnutek",
  "status.archived": "Arhivirano",
  "error.generic": "Nekaj je \u0161lo narobe",
  "error.retry": "Poskusite znova",
  "error.notFound": "Ni najdeno",
  "error.loadFailed": "Nalaganje ni uspelo: {{message}}",
  "error.configMissing": "Konfiguracija ni najdena za: {{id}}",
  "common.loading": "Nalagam...",
  "common.saveChanges": "Shrani spremembe",
  "common.retry": "Poskusi znova",
  "common.open": "Odpri",
  "common.back": "Nazaj",
  "empty.noItems": "Ni elementov",
  "empty.noData": "Ni podatkov",
  "empty.noItemsYet": "\u0160e ni elementov",
  "empty.noItemsAdded": "\u0160e ni dodanih elementov",
  "empty.noOptionsFound": "Ni najdenih mo\u017Enosti",
  "list.addItemPlaceholder": "Dodaj nov element...",
  "error.occurred": "Pri\u0161lo je do napake",
  "error.failedToLoad": "Nalaganje podatkov ni uspelo",
  "wizard.back": "Nazaj",
  "wizard.next": "Naprej",
  "wizard.complete": "Zaklju\u010Di",
  "wizard.stepOf": "Korak {{current}} od {{total}}",
  "pagination.previous": "Prej\u0161nji",
  "pagination.next": "Naslednji",
  "pagination.total": "Skupaj:",
  "pagination.show": "Prika\u017Ei:",
  "pagination.goTo": "Pojdi na:",
  "pagination.go": "Pojdi",
  "auth.signIn": "Prijava",
  "auth.signOut": "Odjava",
  "dialog.confirm": "Potrdi",
  "dialog.cancel": "Prekli\u010Di",
  "dialog.loading": "Nalagam...",
  "dialog.delete.title": "Izbrisati {{item}}?",
  "dialog.delete.message": "Tega dejanja ni mogo\u010De razveljaviti.",
  "trait.availableActions": "Razpolo\u017Eljive akcije",
  "trait.transitions": "Prehodi",
  "trait.availableNow": "Trenutno na voljo",
  "book.startReading": "Za\u010Dni brati",
  "book.tableOfContents": "Kazalo vsebine",
  "book.partNumber": "Del {{number}}",
  "book.print": "Natisni",
  "book.previousPage": "Prej\u0161nja stran",
  "book.nextPage": "Naslednja stran",
  "quiz.showAnswer": "Prika\u017Ei odgovor",
  "quiz.hideAnswer": "Skrij odgovor"
};

// locales/index.ts
var coreMessages = {
  en: stripMeta(en_default),
  ar: stripMeta(ar_default),
  sl: stripMeta(sl_default)
};
var localeMeta = {
  en: { locale: "en", direction: "ltr" },
  ar: { locale: "ar", direction: "rtl" },
  sl: { locale: "sl", direction: "ltr" }
};
function mergeMessages(locale, projectMessages) {
  return { ...coreMessages[locale], ...stripMeta(projectMessages) };
}
function stripMeta(obj) {
  const result = {};
  for (const [key, value] of Object.entries(obj)) {
    if (key.startsWith("$")) continue;
    if (typeof value === "string") {
      result[key] = value;
    }
  }
  return result;
}

export { coreMessages, localeMeta, mergeMessages };
