'use strict'; const fs = require('fs'); const path = require('path'); const yaml = require('yaml'); var _documentCurrentScript = typeof document !== 'undefined' ? document.currentScript : null; function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e.default : e; } const fs__default = /*#__PURE__*/_interopDefaultCompat(fs); const path__default = /*#__PURE__*/_interopDefaultCompat(path); const yaml__default = /*#__PURE__*/_interopDefaultCompat(yaml); const __dirname$1 = path__default.dirname(new URL((typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.src || new URL('index.cjs', document.baseURI).href))).pathname); const LOCALES_DIR = path__default.join(__dirname$1, "locales"); const loadLocale = (locale) => { try { const filePath = path__default.join(LOCALES_DIR, `${locale}.yaml`); const content = fs__default.readFileSync(filePath, "utf-8"); const parsedContent = yaml__default.parse(content); const yamlContent = yaml__default.stringify(parsedContent); return yamlContent; } catch (error) { console.error(`Error loading ${locale}.yaml:`, error); return error.message; } }; const locales = {}; ["ru", "en", "es", "it", "fr", "pt", "zh", "hi", "id", "el", "ar", "ko"].forEach((locale) => { locales[locale] = loadLocale(locale); }); module.exports = locales;