diff --git a/.gitignore b/.gitignore index 42a1b3c705..7db726beb8 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,5 @@ +dump.rdb + dist/ yarn.lock npm-debug.log diff --git a/.mocharc.yml b/.mocharc.yml index 16d8518d1b..b9246aa609 100644 --- a/.mocharc.yml +++ b/.mocharc.yml @@ -1,4 +1,4 @@ reporter: dot timeout: 25000 exit: true -bail: true +bail: false diff --git a/dump.rdb b/dump.rdb deleted file mode 100644 index cb7e290355..0000000000 Binary files a/dump.rdb and /dev/null differ diff --git a/public/openapi/components/schemas/PostObject.yaml b/public/openapi/components/schemas/PostObject.yaml index 78e53d85d4..446c01689d 100644 --- a/public/openapi/components/schemas/PostObject.yaml +++ b/public/openapi/components/schemas/PostObject.yaml @@ -9,6 +9,10 @@ PostObject: description: A topic identifier content: type: string + isEnglish: + type: boolean + translatedContent: + type: string uid: type: number description: A user identifier diff --git a/public/openapi/write/posts/pid.yaml b/public/openapi/write/posts/pid.yaml index d538000827..b993c1da34 100644 --- a/public/openapi/write/posts/pid.yaml +++ b/public/openapi/write/posts/pid.yaml @@ -66,6 +66,10 @@ get: type: boolean downvoted: type: boolean + isEnglish: + type: boolean + translatedContent: + type: string put: tags: - posts diff --git a/src/translator.js b/src/translate/translator.js similarity index 54% rename from src/translator.js rename to src/translate/translator.js index 8584686056..06102a7350 100644 --- a/src/translator.js +++ b/src/translate/translator.js @@ -8,7 +8,7 @@ function warn(msg) { } } -module.exports = require('../public/src/modules/translator.common')(require('./utils'), (lang, namespace) => { - const languages = require('./languages'); +module.exports = require('../../public/src/modules/translator.common')(require('../utils'), (lang, namespace) => { + const languages = require('../languages'); return languages.get(lang, namespace); }, warn);