diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index d7f7bfce5..27ad2eb60 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -19,6 +19,10 @@ lint-sass: stage: lint script: yarn test:lint:sass +i18n: + stage: lint + script: yarn manage:translations + build-development: stage: build script: yarn build:development diff --git a/webpack/translationRunner.js b/webpack/translationRunner.js index 8aaa68bcd..89119ab9e 100644 --- a/webpack/translationRunner.js +++ b/webpack/translationRunner.js @@ -5,8 +5,8 @@ const { default: manageTranslations, readMessageFiles } = require('react-intl-t const RFC5646_REGEXP = /^[a-z]{2,3}(?:-(?:x|[A-Za-z]{2,4}))*$/; -const rootDirectory = path.resolve(__dirname, '..', '..'); -const translationsDirectory = path.resolve(rootDirectory, 'app', 'javascript', 'gabsocial', 'locales'); +const rootDirectory = path.resolve(__dirname, '..'); +const translationsDirectory = path.resolve(rootDirectory, 'app', 'gabsocial', 'locales'); const messagesDirectory = path.resolve(rootDirectory, 'build', 'messages'); const availableLanguages = fs.readdirSync(translationsDirectory).reduce((languages, filename) => { const basename = path.basename(filename, '.json'); @@ -216,4 +216,3 @@ if (problems.length > 0) { process.exit(1); } }; -