fix: translations

pull/2845/head
Johan Girod 2023-12-15 12:12:26 +01:00
parent 49dac893cc
commit ba3373567e
2 changed files with 630 additions and 1 deletions

View File

@ -45,8 +45,8 @@ function readRules() {
export default function writeJSFile() {
const rules = readRules()
const names = Object.keys(new Engine(rules).getParsedRules())
const json = JSON.stringify(JSON.stringify(rules))
const names = Object.keys(new Engine(rules).getParsedRules())
const jsString = `export const json = /*@__PURE__*/ ${json};\nexport default /*@__PURE__*/ JSON.parse(json);`
fs.writeFileSync(path.resolve(outDir, 'index.js'), jsString)
fs.writeFileSync(

File diff suppressed because it is too large Load Diff