{"version":3,"sources":["discourse/pre-initializers/theme-23-translations.js"],"names":["window","define","_exports","Object","defineProperty","value","default","_default","name","initialize","data","zh_CN","table_of_contents","insert_table_of_contents","post_bottom_tooltip","en","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,MAAS,CACPC,kBAAqB,KACrBC,yBAA4B,OAC5BC,oBAAuB,QAEzBC,GAAM,CACJH,kBAAqB,oBACrBC,yBAA4B,2BAC5BC,oBAAuB;AAG3B,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-23/","sourcesContent":["if ('define' in window) {\ndefine(\"discourse/theme-23/pre-initializers/theme-23-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-23-translations\",\n    initialize() {\n      /* Translation data for theme 23 (zh_CN)*/\n      const data = {\n        \"zh_CN\": {\n          \"table_of_contents\": \"目录\",\n          \"insert_table_of_contents\": \"插入目录\",\n          \"post_bottom_tooltip\": \"帖子控制\"\n        },\n        \"en\": {\n          \"table_of_contents\": \"table of contents\",\n          \"insert_table_of_contents\": \"Insert table of contents\",\n          \"post_bottom_tooltip\": \"Navigate to post controls\"\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[23] = data[lang];\n      }\n    }\n  };\n  _exports.default = _default;\n});\n}\n"]}