{"version":3,"sources":["discourse/pre-initializers/theme-15-translations.js"],"names":["window","define","_exports","Object","defineProperty","value","default","_default","name","initialize","data","en","search_banner","headline","subhead","zh_CN","lang","cursor","I18n","translations","key"],"mappings":"AAAI,WAAYA,QAChBC,OAAO,4DAA6D,CAAC,YAAY,SAAUC,GACzF;AAEAC,OAAOC,eAAeF,EAAU,aAAc,CAC5CG,OAAO,IAETH,EAASI,aAAU;AACnB,IAAIC,EAAW,CACbC,KAAM,wBACNC,aAEE,MAAMC,EAAO,CACXC,GAAM,CACJC,cAAiB,CACfC,SAAY,2BACZC,QAAW,mFAGfC,MAAS,CACPH,cAAiB,CACfC,SAAY,gBACZC,QAAW;AAIjB,IAAK,IAAIE,KAAQN,EAAM,CACrB,IAAIO,EAASC,KAAKC;AAClB,IAAK,IAAIC,IAAO,CAACJ,EAAM,KAAM,sBAC3BC,EAASA,EAAOG,GAAOH,EAAOG,IAAQ,CAAC;AAEzCH,EAAO,IAAMP,EAAKM,EACpB,CACF;AAEFd,EAASI,QAAUC,CACrB","sourceRoot":"theme-15/","sourcesContent":["if ('define' in window) {\ndefine(\"discourse/theme-15/pre-initializers/theme-15-translations\", [\"exports\"], function (_exports) {\n  \"use strict\";\n\n  Object.defineProperty(_exports, \"__esModule\", {\n    value: true\n  });\n  _exports.default = void 0;\n  var _default = {\n    name: \"theme-15-translations\",\n    initialize() {\n      /* Translation data for theme 15 (en)*/\n      const data = {\n        \"en\": {\n          \"search_banner\": {\n            \"headline\": \"Welcome to our community\",\n            \"subhead\": \"We're happy to have you here. If you need help, please search before you post.\"\n          }\n        },\n        \"zh_CN\": {\n          \"search_banner\": {\n            \"headline\": \"欢迎来到飞致云开源社区论坛\",\n            \"subhead\": \"在创建一个新话题之前，先搜索一下~\"\n          }\n        }\n      };\n      for (let lang in data) {\n        let cursor = I18n.translations;\n        for (let key of [lang, \"js\", \"theme_translations\"]) {\n          cursor = cursor[key] = cursor[key] || {};\n        }\n        cursor[15] = data[lang];\n      }\n    }\n  };\n  _exports.default = _default;\n});\n}\n"]}